Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Brad Konia on Sep 13, 2008 11:41
open dhtmlx forum
Can't get grid.parse to work

Please take a look at http://www.modelscope.com/browse_cams.php

Notice that the grid doesn't display using mygrid.parse.

However, when I load the exact same XML from an external file using mygrid.load, it works perfectly. You can see the mygrid.load statement commented out on the previous line.

My goal is to be able to embed the XML directly in the document, rather than loading it from an external file.

Can you tell me what I'm doing wrong?

Thanks!
Answer posted by Support on Sep 15, 2008 07:42
init() method should be called before adding data. So, please, try to call methods in the following order:
...
mygrid.init();
mygrid.parse(...);
Answer posted on Sep 15, 2008 08:40
Works great! Thanks.