Author Topic: check and uncheck event handlers not working after upgrade to 3.2.2  (Read 3803 times)

NRI Fintech

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 6
    • View Profile
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 }
})
;
« Last Edit: October 17, 2016, 03:50:18 pm by NRI Fintech »

NRI Fintech

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.3.2
« Reply #1 on: October 17, 2016, 02:22:47 pm »
Sorry, wrong version mentioned. Not working after upgrade to 3.3.2
« Last Edit: October 17, 2016, 03:49:18 pm by NRI Fintech »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.2.2
« Reply #2 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

NRI Fintech

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.2.2
« Reply #3 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.2.2
« Reply #4 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.

NRI Fintech

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.2.2
« Reply #5 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.2.2
« Reply #6 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'

NRI Fintech

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.2.2
« Reply #7 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 ?? 

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: check and uncheck event handlers not working after upgrade to 3.2.2
« Reply #8 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.