Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jeyakumari on Apr 20, 2007 07:49
open dhtmlx forum
How to display text in a Checkbox column?

I'm using dhtmlXGridObject. I want to display NA in a checkbox column if the value is -1. How can I achieve this?
Answer posted on May 05, 2007 16:38

There is no native support for such functionality but it can be achieved in two next ways

a) complex - you can adjust code of existing "ch" excell, or create a custom excell, which will render data in any preferable way.
b) You can use per-cell types , the next definition
    <rows>
       <row id="1"><cell>1</cell></row>
       <row id="2"><cell type="ro">NA</cell></row>

will render second cell as "ro" excell with NA text , without relation to column type, if it was a checkbox - the first row will have checkbox control, the second will have text.
Answer posted by Darya (Support) on Nov 30, 2014 13:05

Not much can be said in addition to the reply above, but you also can check html data grid and tab with javascript and find out what we have probably missed in our explanation.