dgrid 4.0 checkbox issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

dgrid 4.0 checkbox issue

Forbes, Mike

Issue with dgrid 4.0 with Checkbox and receiving data from the server.

 

I have the current grid:

 

var CustomGrid = declare([OnDemandGrid, DijitRegistry, Selection, Selector]);

 

var self = this;

                  this.grid = new CustomGrid({

                           collection: this.store,

                           columns:

                                  {

                                  bValue: { label: "", sortable: false, selector: "checkbox"},

                                  name: self._createCell({ label: i18n.selectAll, sortable: false})},

                           selectionMode: "single",

                           allowSelectAll: true

                           }, this.gridNode);

                          

                     this.grid.startup(); 

 

 

JSON:

 

{bValue: true, name: “Alex”, id: index++}

{bValue: false, name: “Marc”, id: index++}

{bValue: true, name: “Stella”, id: index++}

 

 

For some reason the checkbox in the grid remain unchecked for the data with the value of “true”.  Is there something missing?


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest