Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by john on Nov 01, 2008 09:10
open dhtmlx forum
dhtmlxgrid window...incorrect XML

hi

when i execute the following code i am getting incorrect XML..whats wrong in the code.

I try with loadXML and loadXMLString...no luck

mygrid = new dhtmlXGridObject("gridbox");
                mygrid.setImagePath("dhtmlxGrid/codebase/imgs/");
                mygrid.setHeader("Choose");
                mygrid.setInitWidths("150")
                mygrid.setColAlign("left")
                mygrid.setColTypes("ro");
                mygrid.setColSorting("str")
                mygrid.setColumnColor("#d5f1ff")
                mygrid.setColumnMinWidth(50,0);
                mygrid.init();
                mygrid.loadXML("<?xml version='1.0' encoding='iso-8859-1'?><rows><row id='0'><cell>Pizza</cell></row><row id='1'><cell>Burger</cell></row></rows>");
                mygrid.attachEvent("onRowSelect",doOnRowSelected);

john
Answer posted by Support on Nov 03, 2008 03:55
>><row id='0'><cell>
ID = 0 , is reserved for inner usage, please try to use any different  ID value, it must resolve problem.