jQuery UI Widgets › Forums › Grid › Intermediate Checkbox in Checkbox Selection Grid
Tagged: checkbox selection
This topic contains 6 replies, has 2 voices, and was last updated by Peter Stoev 12 years, 6 months ago.
-
Author
-
HI Team ,
I am using parent/child(nested) jqxgrid (3.0.2 ) with both grid as check box selection mode. If I have five rows in child grid and user select less than five rows in child grid then its corresponding parent’s row checkbox need to be in intermediate state. Is there anyway to do this?
Regards,
AbdulHi Abdul,
You can listen for cellvaluechanged in the “child grid”, count the checked rows in it via a for-loop and then update the parent Grid’s checkbox value by calling its “setcellvalue” method.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
we are using parent grid as CheckBox Selection and this type of grid provides checkbox column automatically. so what value needs to be set in “setcellvalue” method to make checkbox as partial checked.
$(“#jqxGrid”).jqxGrid(‘setcellvalue’, 0, “firstname”, “New Value”);
Regards,
AbdulHi Peter,
Is there any workaround?
Regards,
AbdulHi Abdul,
Pass null as value for indeterminate check state.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
I think we are not on the same page. Since grid with CheckBox Selection(New feature) provide check box column automatically so what value need to pass for column name in setcellvalue method. Can you please provide me the complete parameter for setcellvalue?
Regards,
AbdulHi Abdul,
If you want to select a row or unselect a row use the “selectrow” and “unselectrow” methods. The built-in checkbox selection does not support indeterminate state.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.