ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: bsolteam on August 22, 2014, 05:09:28 pm

Title: How to make a check box non-editable?
Post by: bsolteam on August 22, 2014, 05:09:28 pm
Hi,
I am using check box for displaying some grid table based on the check box selection. I want to restrict the selection of check boxes ie. at least one check box must be checked from all of them. If i will try to unchecked the last check box, it should not be happen .One check box must appear.  We can select more than one .

Thanks
Title: Re: How to make a check box non-editable?
Post by: paramvir on August 25, 2014, 05:39:35 pm
Please refer to this demo

http://paramquery.com/demos/selection_custom

Before unselection of row ( line number 78 and 99 ), check whether it's the only remaining selection by iterating over
dataModel.data[ i ] [ dataIndx ]

where i varies from 0 to dataModel.data.length
and dataIndx is name of field holding state of selection.