Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sunis on Oct 22, 2009 10:56
open dhtmlx forum
Different clist for each row in grid

Hi,

I want to have a different Clist for different row like.

first row ---- level 1, [n1,n2,n3], col21, col31
second row---- level 2, [n4,n5,n6], col22, col32
third row ---- level 3, [n7,n8,n9], col23, col 33


etc..........

Can we do this kind of implementation in CLIST, if not any other solution available for the same?
Please advice.
Answer posted by Alex (support) on Oct 23, 2009 02:47

Hello,

you can use one of the following methods:

1) options are defined in the xml:

<cell xmlcontent="1">n1<option>n1</option><option>n2</option><option>n3</option></cell>

2) setting using JS:

grid.loadXML("grid.xml",function(){

grid.cells2(0,1).cell._combo = ["n1","n2","n3"];

grid.cells2(1,1).cell._combo = ["n4","n5","n6"];

})

Here cells2 method gets row index and column index as the parameters.