SitePen / dgrid

A lightweight, mobile-ready, data-driven, modular grid widget designed for use with dstore
http://dgrid.io/
Other
628 stars 299 forks source link

how to disabled the editor of checkbox acording the grid store data? #595

Open hustcolin opened 11 years ago

hustcolin commented 11 years ago

e.g: test/editor_more_widgets.html if (grid.store.data[0].bool == true ), then the first row of checkbox is disabled ; if (grid.store.data[1].bool == false ), then the second row of checkbox is enabled;

and every time when we change grid.store.data, the displaying checkbox can change while
grid.refresh() called .

kfranqueiro commented 9 years ago

Currently the closest dgrid/Editor has to this is the canEdit function on column definitions, but that controls whether the editor is rendered or not - not whether it's disabled. This is a topic that's come up internally as well; eventually we'd like to make it simple to support this case as well.