oria / gridx

Just another powerful Dojo grid
Other
162 stars 78 forks source link

Grid with checkbox allways not show checked #368

Open edwinspire opened 9 years ago

edwinspire commented 9 years ago

I have a table where a column is Boolean and I used a checkbox with the following structure:

var structure = [{field:'enabled', width: '50px ', editable: 'true', dataType: 'boolean', editor: 'dijit/form/CheckBox', editorArgs: {props: 'value: true'}, alwaysEditing: true, name:'Habilitado'}]

Grid = new Grid({ store: new Memory({}), structure: structure, paginationInitialPageSize: 25, //autoHeight: true, //autoWidth: true, modules: [ 'gridx/modules/Focus', 'gridx/modules/VirtualVScroller', 'gridx/modules/Edit', 'gridx/modules/CellWidget', 'gridx/modules/RowHeader', 'gridx/modules/select/Row', 'gridx/modules/extendedSelect/Row', 'gridx/modules/IndirectSelect', "gridx/modules/Pagination", "gridx/modules/pagination/PaginationBar", "gridx/modules/ColumnResizer", "gridx/modules/Filter", "gridx/modules/filter/FilterBar", "gridx/modules/filter/QuickFilter", "gridx/modules/SingleSort", "gridx/modules/extendedSelect/Row", "gridx/modules/IndirectSelectColumn" ], summary: 'this is the gridx' }); Grid.placeAt(t.Contenedor); Grid.resize(); Grid.startup();

Doing this column shows me correctly but when I load the data using ajax json format are not updated in the table, always show me the checkbox unchecked, but if I pass the mouse over the checkbox then those already true value "shows". That is not bad or I do it properly.

edwinspire commented 9 years ago

image

edwinspire commented 9 years ago

After passing the mouse over image