grid

Highlighting/Selecting grid row in ExtJS

ⅰ亾dé卋堺 提交于 2019-12-09 16:57:53
问题 I am newbie to Ext JS. I am working on a grid panel in which when I select/click any of the rows, then certain data related to the selected row is displayed in the panel below the grid. Also when the window is loaded the first should be selected/highlighted by default. Currently the grid & panel is displayed properly. Even the data related to the selected row is displayed in the panel but the row is not getting highlighted. I have tried the grid.focusRow(0) & grid.getRow(0).highlight()

How to filter multiple extjs grid columns?

二次信任 提交于 2019-12-09 16:01:02
问题 To filter one grid column we can use: { xtype: 'button', text:'Search', handler:function(){ store.clearFilter(); var searchValue = Ext.getCmp("textFieldId").getValue(); store.load().filter('GridFieldName', searchValue); } } but how to search multiple fields at once, something like: { xtype: 'button', text:'Search', handler:function(){ store.clearFilter(); var searchValue = Ext.getCmp("textFieldId").getValue(); store.filter([ {property: "GridFieldName", value: searchValue}, {property:

Kendo Grid - its own Loading indicator

百般思念 提交于 2019-12-09 15:00:00
问题 Kendo grid provides its own Loading indicator automatically when the grid is loaded, paging, sorting. It is working fine. But I don't want this built-in loading indicator to be shown/hidden. How can I disable this feature? Please advise me. Thanks, Vinoth 回答1: Simple, just hide it with CSS. Your selector will need to be more specific than the built-in Kendo classes. You can use the Grid's ID for that. #grid .k-loading-image { background-image: none; } If you want to remove the loading mask

Vaadin Grid cell not showing multiline rows

折月煮酒 提交于 2019-12-09 14:47:03
问题 With Vaadin Grid, I want to generate multiline cells for every cell that have more content in cell that overlaps its width. I have allready tried: java \n new line character and CSS stylings like white-space: pre; but it does not seem to work. (This solution worked for Table) custom renderer setRenderer(HtmlRenderer) with </br> tags and different CSS display settings Desired result: 回答1: Vaadin Grid still doesn't have native support for multiline columns but you can try some improvisation, on

Telerik MVC: Loading Grid with ajax request don't work

耗尽温柔 提交于 2019-12-09 13:58:20
问题 I have a Telerik MVC Tabstrip. I have used: .LoadContentFrom("Grid", "Orders"); "Grid" Action just returns view without model. Then the Ajax request should have been fired to get the data. It is loading the grid normally but it is not calling the Ajax request to fill the data. If I am calling the same action normally i.e. without ajax it displays grid and fires Ajax request to load the data. 回答1: Perhaps you've missed to register the required JavaScript files for the Grid. You can check the

Displaying rectangles in game window with XNA

跟風遠走 提交于 2019-12-09 12:46:22
问题 I want to divide my game grid into an array of rectangles. Each rectangle is 40x40 and there are 14 rectangles in every column, with a total of 25 columns. This covers a game area of 560x1000. This is the code I have set up to make the first column of rectangles on the game grid: Rectangle[] gameTiles = new Rectangle[15]; for (int i = 0; i <= 15; i++) { gameTiles[i] = new Rectangle(0, i * 40, 40, 40); } I'm pretty sure this works, but of course I cannot confirm it because rectangles do not

WPF SharedSizeGroup GridSplitter Issue

蓝咒 提交于 2019-12-09 11:18:41
问题 I wish to use a Grid for my top level layout. The Grid will have 1 column and n rows. Each row in the Grid should also contain a Grid which shall have 3 columns and 1 row. In the second column is a GridSplitter and I am trying to use a SharedSizeGroup so that this changes the size of the first column across all of the nested Grids. Here is what i have...and it works!!...well kind of...if you click the splitter and resize without letting go it works...but for some reason if you resize

Are there any good free/cheap Delphi grid controls?

给你一囗甜甜゛ 提交于 2019-12-09 04:20:35
问题 I gave up on Delphi's DBGrid nearly a decade ago because it is simply no good. Since then, I have used Virtual TreeView which offers a lot of value but it has a few issues. Like the current state of development (e.g. None) and the fact that there is no good data-bound version. DevExpress's QuantumGrid is famous for the rich feature set but is really quite expensive. I reckon that its huge feature set is probably overkill for 95% of the general use cases for data-bound grid controls. Does

Matplotlib: check if grid is on?

百般思念 提交于 2019-12-08 21:43:51
问题 Matplotlib has a very easy method for toggling gridlines on a figure: from matplotlib.figure import Figure fig = Figure() ax = fig.add_subplot(111) ax.grid(True) But it does not seem to have any method to determine the state of the grid (on/True or off/False)? A look at the source code reveals that buried in the Axis class, there are the private variables: self._gridOnMinor and self._gridOnMajor Accessing these could be done by: ax.xaxis._gridOnMinor ax.yaxis._gridOnMinor and so on... but as

CheckBox in a DBGrid

故事扮演 提交于 2019-12-08 21:41:20
问题 My question is how to set a column in dbgrid in Delphi 7 which will be with a checkbox items. Thanks in advance. 回答1: The easiest and most complete method as tested by me is as follows: In the private section of your unit, declare a global for retaining grid options. It will be used for restoring after temporary disabling text editing while entering the checkbox column - as this is maybe one of the little errors mentioned by Jordan Borisovin regarding the delphi.about.com article private