Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stan Levin on Apr 24, 2007 23:32
open dhtmlx forum
I need to get a value from the first row of the grid right after the grid has been loaded. But get an error when trying to access cell value: mygrid.loadXML("./data"); var value = mygrid.cells(0,1).getValue(); I am populating the gird from the onload event handler of the page in the following manner: The error says the following: Line: 1677 '_childIndexes' is null or not an object It seems to me that the grid is not yet fully initialized at htis moment. Because calling the same getValue() later works fine. However, I need to read the value automatically when the page is being loaded to initialize some other page controls. Is there another way to do this? Regards, Stan.

Answer posted on May 07, 2007 11:20
The loadXML command is async, so the next command called after it can be
executed before XML really loaded and parsed in grid. To be sure that
XML already loaded you can use onLoadingEnd event or second parameter of
loadXML command.

grid.loadXML(someURL,function(){
    //called after XML loaded
    alert(getRowsNum());
});
Answer posted by sematik (Support) on Dec 07, 2014 01:10

The information connected with combobox autocompletemode and dhtml download also can help you, so please check it too.