ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: NRI Fintech on October 17, 2016, 02:19:38 pm

Title: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: NRI Fintech on October 17, 2016, 02:19:38 pm
The check and uncheck event handlers are not working after upgrade to version 3.3.2

Here is the options.

Code: [Select]
    colModel.push({ title: "", dataIndx: "abcd", width: 'flex', align: "center", resizable: false,
type: 'checkBoxSelection', cls: 'ui-state-default', sortable: false, editable: true,
cb: { all: false, header: false, select: true, all: true }
})
;
Title: Re: check and uncheck event handlers not working after upgrade to 3.3.2
Post by: NRI Fintech on October 17, 2016, 02:22:47 pm
Sorry, wrong version mentioned. Not working after upgrade to 3.3.2
Title: Re: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: paramvir on October 17, 2016, 04:09:32 pm
It's type: 'checkbox'

and this type of column can't be added or removed dynamically.

http://paramquery.com/pro/api#option-column-type
Title: Re: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: NRI Fintech on October 17, 2016, 04:36:18 pm
We have used type="checkbox" but still it does not work.

Maybe, we were not clear.

We are not trying to dynamically change the checkbox. We have simply used the following event handlers which are not getting triggered.

objGrid.check = function(evt, ui) { ..... }

objGrid.unCheck = function(evt, ui) { ...... }

In fact none of the event handlers are getting triggered.

What can be the problem ? We guess we are doing something wrong.
Title: Re: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: paramvir on October 17, 2016, 04:50:33 pm
By dynamic manipulation, it means type: 'checkbox' column can't be added / removed from colModel after initialization of grid.

Quote
In fact none of the event handlers are getting triggered

DOM events are disabled by default for the grid which can be re-enabled by setting trigger option to true. But inline events and instance listeners should work without that option.
http://paramquery.com/pro/tutorial#topic-events

Could you please share a small test case though jsfiddle or through attachment so that I can have a look at it.
Title: Re: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: NRI Fintech on October 18, 2016, 09:58:53 am
Added a simple test case using the older version where 'check' and 'uncheck' are working.

Upgrade to 3.3.x and this will not work.
Title: Re: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: paramvir on October 18, 2016, 11:53:38 am
Thanks for sharing sample code. Corrected sample working with v3.3.x: http://jsfiddle.net/6zzdhmsg/

Please read through the upgrade guide http://paramquery.com/pro/upgrade/Index32 and check the example http://paramquery.com/pro/demos/checkbox

column should be editable, editor should be false and dataType should be mentioned.

editor: false, dataType: 'bool'
Title: Re: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: NRI Fintech on November 15, 2016, 01:09:44 pm
According to  http://paramquery.com/pro/upgrade/Index32  page checkbox columns are not compatible with IE <= 8.  Can you explain what features of Param Query check box does not work on  IE <= 8 ?? 
Title: Re: check and uncheck event handlers not working after upgrade to 3.2.2
Post by: paramvir on November 17, 2016, 11:25:16 am
If an unchecked checkbox is clicked in checkbox column in IE <= 8, it remains unchecked and vice versa.