Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DJAY on Jan 27, 2010 08:05
open dhtmlx forum
dhtmlxTreeGrid cell type combo_v does not show the option value when combo_v size is not long enough to fit the option content

Hi,

I am using dhtmlxTreeGrid and one of the column type is combo_v. I am configuring this in XML as below

<head>
 <column width="5" type="combo_v" editable="false" align="left" sort="str" xmlcontent="1">Role</column>
 
 <settings>
            <colwidth>%</colwidth>
        </settings>
</head>

<row id="row3">
 <cell type="combo_v" xmlcontent="1" style="background: transparent;">CLIENT SERVICE ASSOCIATE
  <option value="CLIENT SERVICE ASSOCIATE">CLIENT SERVICE ASSOCIATE</option>
         <option value="FINANCIAL ADVISOR">FINANCIAL ADVISOR</option>
         <option value="MARKETER">MARKETER</option>
         <option value="NOT ESTABLISHED">NOT ESTABLISHED</option>
        </cell> 
</row>

The option values do not show up on the grid cell combo unless I increase the width.

How can I keep the width of cell contant and can still can see at least the portion of the option contents which ever can fit into the specified width.

 

 

Answer posted by Alex (support) on Jan 28, 2010 03:42
Hello

you can try to use multiline mode to solve the issue:

mygrid = new dhtmlXGridObject('gridbox');
mygrid.enableMultiline(1)
...

Answer posted by DJAY on Jan 28, 2010 09:15

With this option, mygrid.enableMultiline(1), the content in the combobox gets wrapped to next line and the combobox looks more heighted.

What I actually would like to do is to keep the original height of the combobox, and if the content does not feet into it then would like to see the portion of the content what ever can fit in the give size of combobox.

e.g.   If the size of the combo_v type cell is 5 and the content CLIENT SERVICE ASSOCIATE is more that combo_v size then it should dispay CLIENT SER

Is this possible?

 

 

Answer posted by Alex (support) on Jan 29, 2010 02:27
It will require complex modification in existing code

For any further question please post at http://forum.dhtmlx.com or open ticket at http://support.dhtmlx.com