Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Sep 09, 2008 09:35
open dhtmlx forum
Previous value of the checkbox

How can i know the provious state of the a checkbox in a grid before edit?

mygrid1.attachEvent("onCheckbox",function(id,ind,state)
{

});
Answer posted by Support on Sep 09, 2008 09:49
The event occurs only when checkbox state changed. 
If "state" has true value => checkbox was unchecked and switched to checked state now
If "state" has false value => checkbox was checked and switched to unchecked state now