Categories | Question details Back To List | ||
Setting combo box (coro) values in XML? Hi, I need to set the values in a coro column (combo box) in the XML being loaded rather than hardcoded in the Javascript as done in grid_skinning.html in the samples dir: mygrid.getCombo(5).put(1,"1 hour"); mygrid.getCombo(5).put(12,"12 hours"); mygrid.getCombo(5).put(24,"24 hours"); mygrid.getCombo(5).put(48,"2 Days"); Can the above be done through the XML? Examples? Thanks, Leonard Sisson (I'm using dhtmlxGrid Pro 1.4) Answer posted by Stanislav on Sep 25, 2007 13:58 If you init grid structure in XML you can define list of coro values here <rows> <head> <column width="80" type="coro" align="left" sort="str">Shipping <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">10</option> <option value="5">20</option> <option value="6">30</option> </column> Please mention if you need same functionality for situation when structure configured from javascript, while there is no API for such situation, it can be done with simple workaround. |