Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bronek on Jan 28, 2009 01:07
open dhtmlx forum
Radiobutton event onCheck does not work

Hi,
I'm using radiobutton in dhtmlxgrid 1.6 and I attached function on event onCheckbox:

myGrid.attachEvent("onCheckbox", myApp.doOnCheck);

Problem is that sometime this event does not work and throws exception in Javascript:
"this.parentNode.obj is undefined"

In your sources when the radio button is created is this code: onclick='this.parentNode.obj.changeState()'.

I guess that there have to be something wrong :).
Interesting is that sometime this event work and sometime not, it is confusing :-).


Thanks.

Have a nice day
Answer posted by Support on Jan 28, 2009 01:51
Which version of grid you are using?

>>In your sources when the radio button is created is this code: onclick='this.parentNode.obj.changeState()'.
This code was replaced with more stable in latest builds of dhtmlxgrid 1.6 and not exist in dhtmlxgrid 2.0, it really can cause problem in some specific use-cases.

The most simple way to resolve problem - update to latest version of the grid. 
If by some reason it not possible in your case, please contact us directly and provide your ref. number - most probably we will be able to provide the patch for your version of grid.