Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Christian on Apr 30, 2008 08:05
open dhtmlx forum
#master_checkbox

1) It is possible define an event onclick on a #master_checkbox?
2) In the static smartrendering mode the #master_checbox select all rows or only those that are render?

thanks
Answer posted by Support on Apr 30, 2008 09:18
>>1) It is possible define an event onclick on a #master_checkbox?
There is no event, but you can update dhtmlxgrid_filter.js in any necessary way

dhtmlXGridObject.prototype._in_header_master_checkbox=function(t,i){
    t.innerHTML="<input type='checkbox' />";
    t.firstChild.onclick=custom_code;   // this line can be added

>>2) In the static smartrendering mode the #master_checbox select all rows or only those that are render?
This is known limitation
In smart-rendering mode, not parsed rows stored as raw XML, and to modify it in any case - it need to be parsed, which will kill any performance gained by smart-rendering usage.