ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: iamgsprabhu on May 29, 2016, 09:57:39 am

Title: How do I trigger an event when the checkbox select is Un/checked in the pqgrid?
Post by: iamgsprabhu on May 29, 2016, 09:57:39 am
Hi.

I have a grid with type as select, and I want to hide a column on another grid.  I saw the example on (http://paramquery.com/demos/showhide_columns). I want to implement something similar, but instead of menu, I will have the checkbox on a grid ?  I tried the event rowSelect, rowUnselect, cellSelect and cellUnselect, but all four does not trigger the event.

Kindly advise, how can I trigger an event when the checkbox is selected or unselected ?

thx
Prabhu
Title: Re: How do I trigger an event when the checkbox select is Un/checked in the pqgrid?
Post by: paramvir on May 29, 2016, 12:35:18 pm
Try cellClick event:

Code: [Select]
cellClick: function(evt, ui){

if(ui.column.type == 'checkBoxSelection'){
alert("rowIndx = " + ui.rowIndx + ", value = "+ui.rowData.state );
}
},
Title: Re: How do I trigger an event when the checkbox select is Un/checked in the pqgrid?
Post by: iamgsprabhu on May 29, 2016, 07:55:15 pm
Perfect, it worked for me.

thx
Prabhu