Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lee18 on Apr 16, 2008 01:13
open dhtmlx forum
dhtmlxGrid ' s cell option default value

when grid load xml, the cell 's default value is " default value " in follow xml:
<cell>default value</cell>

it display value in grid , i want display is different from value.

i know it can define tags "<column><option value='value'>display</option></column>" in header ,but the default value can not load in tag <column> ,it comes <cell>default value</cell>

can you solve it
Answer posted by Support on Apr 16, 2008 02:38
Basically , there is a way to define default column value for column, the column declaration in such case must look as

<column type="coro[value]"><option value='value'>display</option></column>

The value in square brackets after column type will be used as default value for any cell which has not its own data.
Answer posted by lee18 on Apr 16, 2008 18:39

thank you to reply to my question, it can set a dafault value for tag named "cell" ,but this can not solve display for default value . 

 in cell, it display  default value , i want display is different from value

Answer posted by Support on Apr 17, 2008 02:13
There is no way to have one value selected in cell , and second value as default preselected one in select input.
Such behavior can be achieved only by creating custom excell.