Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Fritz on Dec 16, 2007 11:40
open dhtmlx forum
Duplicate value in "coro" column

I have a grid loaded with a XML file.
This grid has a "coro" column and the options value are in <head> section of XML file.
In the first loading everything it's ok.
When I reload the grid with a new data, the value in "coro" column are duplicate.
The options value are appended to the previous one.

I use :

grid.init()
grid.loadXML(filename,"")

Can you help me ?
Answer posted by Support on Dec 17, 2007 01:35
Problem confirmed and will be fixed in next build, for now you can just add next command before loadXML

grid.init()
grid.getCombo(INDEX).clear();                <<this is it
grid.loadXML(filename,"")

where INDEX - index of coro column