Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dominic on Jan 23, 2008 04:57
open dhtmlx forum
How to disable a checkbox for dhtmlGrid (eXcell "ch") in XML

I create rows for the dhtmlGrid in XML using Ruby & Rails, e.g. with the following line of (dummy) code:

...
is_notified=1
is_disabled="true"
...
{:content => is_notified, :type=>"ch", :disabled=>is_disabled }
...

i.e. i want to to check/uncheck it and control whether it is disabled (i.e. the check state can be seen but not changed) or not.

The check state etc. works fine, the grid entry works perfectly.

BUT I just can't control the enabled/disabled state. I do not want to do it client-side with javascript. Can you give me a hint?
Answer posted by Support on Jan 23, 2008 07:04
    There is no ability to disable editor from XML, but if they are permanently disabled you can change cell type for it

    <row id="active">    
        <cell>1</cell>
    </row>
    <row id="disabled">    
        <cell type="ro"><![CDATA[<img src="disabled.gif">]]></cell>
    </row>

    So image of disabled checkbox will be statically rendered for second row