grid

Making a grid in a ListView ItemTemplate fill

て烟熏妆下的殇ゞ 提交于 2019-12-05 04:10:50
I have a ListView which has a data template based on a grid. The xaml is as follows: <ListView ItemsSource="{Binding SomeItemSource}" HorizontalAlignment="Stretch" Height="281"> <ListView.ItemTemplate> <DataTemplate> <Grid HorizontalAlignment="Stretch" Margin="3" Width="Auto"> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="70"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <!-- Grid content here --> <TextBlock Text="SomeTextbox" Margin=

Extjs 4 checkcolumn not visible

半世苍凉 提交于 2019-12-05 03:31:35
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); you have to manually include the css for the checkcolumn xtype like this: <link rel="stylesheet" type="text/css" href="/extjs4/examples/ux/css/CheckHeader.css"> if your app is

How to make RecyclerView's grid item to have equal height and width?

会有一股神秘感。 提交于 2019-12-05 02:39:11
I define my RecyclerView as grid by setting its layout with GridLayoutManger that has a span count of 3 which are already working fine. I also add an item decorator to my recycler view which will manage the spacing between grid items, this also works fine. public class GridSpacingItemDecoration extends RecyclerView.ItemDecoration { private int spanCount; private int spacing; private boolean includeEdge; public GridSpacingItemDecoration(int spanCount, int spacing, boolean includeEdge) { this.spanCount = spanCount; this.spacing = spacing; this.includeEdge = includeEdge; } @Override public void

how to get grid children by its row and column in wpf?

筅森魡賤 提交于 2019-12-05 02:09:31
问题 <Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center" > <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Button Width="150" Height="50" x:Name="Btn1" Content="Button1" Grid.Row="0" Grid.Column="0"/> <Button Width="150" Height="50" x:Name="Btn2" Content="Button2" Grid.Row="0" Grid.Column="1"/>

Cascading ComboBoxes in ExtJS EditorGridPanel

本秂侑毒 提交于 2019-12-05 01:57:59
问题 I have a working EditorGrid panel, where two columns have ComboBox editors. Both ComboBoxes are loaded remotely from database ( countryStore and cityStore ). I would like to limit the cityComboBox to show only cities in the selected country. I need to reload the cityStore with a filter from database (there are too many cities to filter localy). The filter value is the countryComboBox value. There is always a value in countryComboBox, because I add a default = 1 when creating a new record, so

Kendo UI Grid Export to Excel / PDF not working on IE9

爷,独闯天下 提交于 2019-12-05 01:25:29
问题 I´m having problem to export Kendo UI Grid to excel and pdf in IE9. Everythig works fine using Chrome but in IE9 nothing happens. Here is my grid. Is there something wrong or missing? $("#gridDetalhes").kendoGrid({ dataSource: { data: myJsonList }, excel: { allPages: true, fileName: "SGD_Detalhes.xlsx" }, toolbar: ["excel", "pdf"], columns: [ { field: "DataInicio", width: "135px", title: "Início", type: "date", template: '#= kendo.toString(DataInicio,"dd/MM/yyyy HH:mm:ss") #' }, { field:

extjs grid - how to make column width 100%

删除回忆录丶 提交于 2019-12-05 00:20:26
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? For ExtJS3, set forceFit on the GridPanels viewConfig . See: http://dev.sencha.com/deploy/ext-3.4.0/docs/?class=Ext.grid.GridView For ExtJS 4 set forceFit directly on the GridPanel: http://docs.sencha.com/ext-js/4-0/

ExtJS 4 GridView - How to get cell's td or div?

南笙酒味 提交于 2019-12-04 23:24:08
问题 In GridPanel, we all know that we can specify renderer in a column configuration to have customized cell. Now there is this special case which I need to build a customized visual progress bar (canvas) to be drawn into a cell, my question is how to get the el of the cell ? In the renderer callback, available values are value , metadata , record , rowIndex , columnIndex , store , and view . I have tried view.getNode or view.getCell with no luck still. Thanks you in advance! /Lionel EDIT After

WPF Grid: Is there an easy way to readjust the row items if I need to insert new rows?

混江龙づ霸主 提交于 2019-12-04 22:15:58
It appears that grid row and column definitions are hard-coded like this: Grid.Row="3" Grid.Column="1" I am in the middle of development on a new WPF app and I am having to constantly add and delete new rows from my grid as the client makes up their mind on how the form should look. I am discovering that this is quite a tedious task. If insert a row near the top, I have to manually change all the row indexes in the XAML beneath the row I just inserted. Is there an easy way to auto-adjust all the rows? Rick Sladkey A Grid is a grid and the rows and columns are numbered for a specific reason. It

Why InvalidateRow/InvalidateColum does not work?

若如初见. 提交于 2019-12-04 22:04:22
InvalidateRow and InvalidateColum are not working for TStringGrid. The methods will not invalidate the entire Row/Col. InvalidateGrid always works (so this could be a dirty work-arround until the cause of the bug is found). In some circumstances (it seems to be random) InvalidateRow and InvalidateColum seem to work also. Update: I have found which circumstances will trigger the bug: the grid must be larger than the visible area and the position is outside of the view. Any ideas? Delphi 7, Win 7 32 bits "SOLVED" (Delphi VCL bug) I have found that this bug exists since Delphi 1: http://qc