I am new to dhtmlx and wondering how I can create a grid from xml returned from an ajax call.
I have read the documentation on how to load data from an xml file, but can’t find anything on using xml retrieved using ajax. Any and all help will be greatly appreciated.
Hi sematik. Thanks for your reply, but I guess I didn’t describe my question very well, as it is not the ajax I am having a problem with, but rather the method to use to populate the grid and display it on the page.
I am currently using jQuery’s .ajax method to retrive an xml object and I to populate the grid I have so far tried the following:
grid = new dhtmlXGridObject(‘my-grid’);
grid.init();
grid.parse(xml_object);
but nothing happens, the grid does not show and there are no errors.
Please, provide the generated xml.
Also, please, make sure that you parse the to a grid a string, but not an xml object (‘dataType: “text”’ is expected)