grid

How do I set a Ext Grid Filter Default?

自闭症网瘾萝莉.ら 提交于 2019-12-22 08:54:16
问题 I have a working sort-able grid using the ext 3.4 grid filter plugin. I would like to default the active column to filter true values. User who needs the inactive records could remove the filter. How do I specify a default filter column and value? Thanks in advance! colModel: new Ext.grid.ColumnModel({ defaults: { sortable: true // How do I specify a default filter value // // Only show active records unless the user changes the filter... }, columns: [{ dataIndex:'f_uid', id:'f_uid', header:

Kendo Grid - Bind Data After Search

纵饮孤独 提交于 2019-12-22 07:06:20
问题 ASP.NET MVC 4 | .NET 4.5 | Razor| C# I have a textbox and a button at the top of the page. Below that is a Kendo Grid which is bound to a List in my view model. When the user clicks the search button a jQuery ajax request is made and the data is returned as JSON. The only question I have is how do I bind that data to my Kendo Grid? Any help is appreciated. @(Html.Kendo().Grid(Model.PurchaseOrder.LineItems) .Name("poSearchGrid") .Columns(c => { c.Bound(x => x.LineNumber).Title("Line Number");

Best Way To Span Multiple Columns in WPF Grid/List?

拈花ヽ惹草 提交于 2019-12-22 05:39:09
问题 I have a custom user control I wrote in WPF to display some data. I want to show this usercontrol in a list, but I also want to provide multiple column headers (matching some properties on the user cotrol) so users can sort on properties contained in the usercontrol. I am not sure the best way to go about this. I currently have a ListBox displaying these user controls, but the ListBox has no header and I can't figure out how to put multiple headers on the ListBox. Ideally I'd like something

Firemonkey Grid Control - Aligning a column to the right

允我心安 提交于 2019-12-22 05:31:26
问题 I am using the FireMonkey Grid control but have an on-going issue in trying to right align a column. From other users postings, I have managed to create a new TColumn type, apply a style to this (text as HorzAlign=taTrailing) and in theory - thought that this would be solution. The values are provided by the OnGetValue function to the Grid control. The problem is however that although at first it looks OK, if you scroll the bar/mouse wheel etc. the new TColumn type column does not appear to

Drawing a grid of images with WPF

℡╲_俬逩灬. 提交于 2019-12-22 04:45:15
问题 I'm trying to draw a grid of images/icons with WPF. The grid dimensions will vary but will typically range from 10x10 to 200x200. The user should be able to click on cells, and some cells will need to update (change image) 10-20 times per second. The grid should be able to grow and shrink in all four directions, and it should be able to switch to a different "slice" of the 3D structure it represents. My goal is to find a suitably efficient method for drawing the grid given those requirements.

Wpf GridSplitter replaces binding on row.height property

纵然是瞬间 提交于 2019-12-22 04:28:27
问题 I'm having a hard time with grid splitter. I've bound the RowDefinition.Height dependency property to the clr property of the model as presented below. <Grid.RowDefinitions> <RowDefinition Height='{Binding Path=Height, Mode=OneWay}' /> <RowDefinition Height='*' /> </Grid.RowDefinitions> This works fine just until the GridSplitter is used. When the height of the row is changed manually with GridSplitter , it replaces the binding with the new fixed size (and removes the binding). Have you got

Extjs 4 checkcolumn not visible

纵饮孤独 提交于 2019-12-22 04:20:23
问题 I have a an Grid with a column that must be a checkcolumn, i use this code there are two rows in the grid but the checkcolumn looks empty. When i click on the checkcolumn the console.log returns correctly the changed boolean. But i see nothing in that column. xtype: 'checkcolumn', header: 'REDACTEUR', dataIndex: 'REDACTEUR', width: 75, editor: { xtype: 'checkbox' }, renderer : function(value) { console.log(value); 回答1: you have to manually include the css for the checkcolumn xtype like this:

extjs grid - how to make column width 100%

↘锁芯ラ 提交于 2019-12-22 03:17:39
问题 The property width is a pixel width. { xtype: 'grid', store: store, selModel: Ext.create('Ext.selection.CheckboxModel', { mode: 'SINGLE' }), layout: 'fit', columns: [ { text: "pum", dataIndex: 'SRD_NAME_FL', width: 400 } ], columnLines: true } if i have only one column how can i make column width = 100% or if i have several columns - how to make last column stretch to end of grid? 回答1: For ExtJS3, set forceFit on the GridPanels viewConfig . See: http://dev.sencha.com/deploy/ext-3.4.0/docs/

How to manage PagingToolbar in Ext-js 4.2 correctly?

笑着哭i 提交于 2019-12-21 21:36:26
问题 js 4.2), and I've got some problems when I manage a toolbar on a grid which use a Proxy (ajax). this.grid = new Ext.create('Ext.grid.Panel',{ region : 'center', loadMask : true, layout : 'fit', store : 'Contenedores', tbar: [ { text: 'Exportar Excel' }, '->', { text:'Buscar', handler: this.buscar, scope: this}, '-', { text:'Limpiar', handler: this.limpiar, scope: this} ], columns : [], bbar : new Ext.create('Ext.toolbar.Paging',{ store: 'Contenedores', displayInfo: true, displayMsg :

div grid of squares, float:left issue (image included)

╄→尐↘猪︶ㄣ 提交于 2019-12-21 21:35:55
问题 i am trying to make a grid in such a way that it is always the same size overall (800x600). however, i do not want all squares in a grid to be of the same size. as you can see as soon as i make one square bigger (2x2+gap - colored silver in the image) all the rest of the smaller squares do not realign and start from the start of the next row - creating a WHITE gap in row two. is there a way to fix this? here is the CSS for them: .squareTEST1, .squareTEST2 { width: 60px; height: 60px; margin: