Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prabhu on May 09, 2008 03:32
open dhtmlx forum
I'm trying to use checkbox with check/uncheck

I'm trying to use checkbox with check/uncheck...like rediff,yahoo....when the header checkbox is checked all the checkbox should check ...and vice versa....

my code :

var xmlForGrid = '<?xml version='1.0' encoding='UTF-8'?&gt; <rows&gt; <head&gt; <column width='50' type='ch' align='center'&gt;#master_checkbox</column&gt; <column width='200' type='ed' align='left'&gt;<![CDATA[Environment Name<span style='color:red'&gt;*</span&gt;]]&gt;</column&gt; <column width='380' type='txt' align='left'&gt;<![CDATA[Environment URL<span style='color:red'&gt;*</span&gt;]]&gt;</column&gt;<column width='0' type='ro' align='left'&gt;Environment Id</column&gt; <column width='300' type='txt' align='left'&gt;Description</column&gt;</head&gt;</rows&gt;';

but it doesn't work...pls give me a solution
Answer posted by Support on May 12, 2008 03:28
The provided code is correct.
Please be sure that dhtmlxgrid_filter.js included in your html page ( without such file, the #master_checkbox marker will not convert to checkbox input )

Also, please beware, that functionality of master_checkbox limited in paging|smart_rendering mode - it will affect only rendered rows.

If problem still occurs for you - please provide more details about problem