Categories | Question details Back To List | ||||||||||||||
cell coro and clist in xml hi i have been able to setup columns cells of type coro and clist in xml by using <cell type="coro"> and <cell type="clist"> but how do i generate and populate a combo with values for each specific coro cell, and populate a clist for each clist cell from within xm l and not in JavaScript. Thanks richard Answer posted by Richard White on Mar 03, 2008 04:49 Hi, sorry for the short notice but i would really appreciate it if you could answer this as soon as possible. i have an urgent deadline which i cannot miss :( and need to get it fixed as soon as i can. thanks very much richard Answer posted by Support on Mar 03, 2008 05:40 In case of dhtmlxgrid 1.5 it can be done as <row id="1"> <cell xmlcontent="1">ValueA<option>ValueA</option> <option>ValueB</option> <option>ValueC</option> <option>ValueD</option> </cell> </row> <row id="2"> <cell xmlcontent="1">NotValueB,NotValueC<option>NotValueA</option> <option>NotValueB</option> <option>NotValueC</option> <option>NotValueD</option> </cell> </row> Basically cell may contain a list of options which will be used for clist|co only for cell in question. ("xmlcontent" is a mandatory attribute, which shows that cell data must be processed in specific way ) Answer posted by richard white on Mar 03, 2008 05:47 thanks very much for your prompt reply best wishes richard Answer posted by richard white on Mar 03, 2008 08:29 hi, i am having some real problems with this and cannot get it to work, do you have an example that i can look at and follow? i am trying to build up the xml and it either tells me that a row does not exist, when it does, or it loads but puts [object Element] in the cell thanks very much Answer posted by Support on Mar 04, 2008 02:07 Sample for clist attached ( sample for "co"|"coro" basically the same, just uses different column type ) Please beware that cells with xmlcontent correctly processed only by pro version of grid. >>but puts [object Element] in the cell The first element of cell must be a cell value, and only after it list of options started. Such error may appear if you have cell with list of options but without value. Attachments (1)
Answer posted on Mar 03, 2008 13:53 ok thanks very much Answer posted by Richard White on Mar 07, 2008 06:25 Hi tahnks for your help we have got it working now for the clist but if we change the cell type to coro then it doesnt populate the combo with the options. do you have an example of how to do the coro in the xml. thanks for all your help Answer posted by Support on Mar 07, 2008 06:56 Please check attached sample. Attachments (1)
Answer posted by Richard white on Mar 07, 2008 07:08 Thanks very much :) |