grid

ExtJS 4 RowEditing disable edit on one column based on record

流过昼夜 提交于 2019-12-31 09:21:51
问题 I'm implementing a grid panel with the four last columns editable for most of the rows. The problem is that I'd like to be able to disable editing on, let's say the first one if record.get('status') = 4 which is finalized and only two of the columns should be editable. Is there a way to disable showing the edit for those rows? I can do it using CellEditing but want to keep using the RowEditing plugin. Regards, Kristian 回答1: Use beforeedit event: grid.on('beforeedit', function(editor, e) { if

How to make gutter between columns in a CSS grid system

依然范特西╮ 提交于 2019-12-30 11:51:14
问题 Does anyone know how to make a 20px or 1em gutter for the grid system below? I got all the div s to all go in a row but I want to know how to add a gutter in between each div. I'm doing this to learn how grids are made. jsFiddle Here. body { font:20px/1.2 Verdana, Arial; padding:0px; margin:0px; } *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing:border-box; } .row { width:100%; } .row > [class*='col-'] { /* ... */ } .row > [class*='col-']:last-of

Inline markup blocks cannot be nested. Only one level of inline markup is allowed. MVC RAZOR

拈花ヽ惹草 提交于 2019-12-30 08:14:23
问题 I one one modal window with telerik grid inside. But i need to render images in my grid so as i understand i cant use @ twice. Here is blog post about this issue Link Can someone assist me please. My Code @{ Html.Telerik().Window() .Name("images") .Title("Select an Image") .Content(@<text> @(Html.Telerik().ComboBox() .Name("AjaxComboBox66") .AutoFill(true) .SelectedIndex(0) .BindTo(new SelectList(Model.PhotoFolders, "ID", "Name")) .Filterable(filtering => filtering.FilterMode

Displaying Matplotlib Navigation Toolbar in Tkinter via grid

余生颓废 提交于 2019-12-30 07:58:58
问题 I'm developing a small Tkinter GUI to draw matplotlib-plots. (It contains a few Entries and assembles the plot according to their content.) I have designed my plotting widget according to http://matplotlib.org/examples/user_interfaces/embedding_in_tk.html, only I use grid instead of pack: canvas = FigureCanvasTkAgg(fig, master=root) canvas.get_tk_widget().grid(row=1,column=4,columnspan=3,rowspan=20) That part works. But embedding the NavigationToolbar in the same fashion does not. Tkinter

Displaying Matplotlib Navigation Toolbar in Tkinter via grid

耗尽温柔 提交于 2019-12-30 07:58:11
问题 I'm developing a small Tkinter GUI to draw matplotlib-plots. (It contains a few Entries and assembles the plot according to their content.) I have designed my plotting widget according to http://matplotlib.org/examples/user_interfaces/embedding_in_tk.html, only I use grid instead of pack: canvas = FigureCanvasTkAgg(fig, master=root) canvas.get_tk_widget().grid(row=1,column=4,columnspan=3,rowspan=20) That part works. But embedding the NavigationToolbar in the same fashion does not. Tkinter

Kendo MVC Grid: Creating a Custom command button and passing parameters

99封情书 提交于 2019-12-30 06:16:08
问题 I'm trying to create a custom command button to fire a custom delete function. I need to pass the ID of my model to my custom delete function. You'll notice that I'm trying to pass in a static '5' as a test but I would like to pass in the ID of the row. Any help would be greatly appreciated. @(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => { columns.Bound(p => p.Name).Width(240); columns.Bound(p => p.City).Width(170); columns.Bound(p => p.State).Width(170); columns.Command(command

Create an optimal grid based on n-items, total area, and H:W ratio

无人久伴 提交于 2019-12-30 02:09:58
问题 I'm creating an application that takes a number of equally sized rectangles and positions them in a grid on the screen. I have most of the logic complete for resizing and centering a rectangle within a cell but I'm having trouble with the actual portion that defines the grid the rectangles must conform to. Ideally, in the end I'd have a function like this (pseudo-code): function getGridDimensions (rect surface, int numItems, float hwRatio) { // do something to determine grid-height and grid

Create an optimal grid based on n-items, total area, and H:W ratio

北城以北 提交于 2019-12-30 02:09:05
问题 I'm creating an application that takes a number of equally sized rectangles and positions them in a grid on the screen. I have most of the logic complete for resizing and centering a rectangle within a cell but I'm having trouble with the actual portion that defines the grid the rectangles must conform to. Ideally, in the end I'd have a function like this (pseudo-code): function getGridDimensions (rect surface, int numItems, float hwRatio) { // do something to determine grid-height and grid

ExtJS 4 and its new MVC: grid: how to handle keys?

℡╲_俬逩灬. 提交于 2019-12-29 07:16:21
问题 I'm looking for a way to handle the key in the Grid. I've closely followed the examples here: http://www.sencha.com/learn/architecting-your-app-in-ext-js-4-part-1 http://www.sencha.com/learn/architecting-your-app-in-ext-js-4-part-2 http://www.sencha.com/learn/the-mvc-application-architecture/ So now everything works fine, but I'd like to handle keys in my Grid. So I guess in the declaration " this.control({}) " I should just add another event concerning userlist but it seems Grid don't have

Pythonic and efficient way of finding adjacent cells in grid

浪尽此生 提交于 2019-12-29 04:45:30
问题 I am building a tile based app in Python using pyglet/openGL wherein I'll need to find the all of the adjacent cells for a given cell. I am working in one quadrant of a Cartesian grid. Each cell has an x and y value indicating it's position in the grid( x_coord and y_coord ). These are not pixel values, rather grid positions. I am looking for an efficient way to get the adjacent cells. At max there are eight possible adjacent cells, but because of the bounds of the grid there could be as few