Categories | Question details Back To List | ||
loading XML String tablexmlstr = tablexml.buildtableXML(outputList,Utility.getUser(request,false),currentmonth,true,false,totalBudgetS,totalSpendingS,totalAvgS); var mygrid1='' mygrid1 = new dhtmlXGridObject('spendingtable'); mygrid1.selMultiRows = true; mygrid1.imgURL = "/dhtmlxGrid/codebase/imgs/icons_greenfolders/"; mygrid1.setSkin("light"); mygrid1.enableAutoHeight(true); mygrid1.init(); var spendingtablexml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+<%=tablexmlstr%>; mygrid1.loadXMLString(spendingtablexml,''); mygrid1.attachEvent("onEditCell",doOnCellEdit); value for tablexmlstr is this <rows><head><column width='185' type='tree' align='left' id='category' sort='str'>Income Category</column><column width='140' type='price' align='left' id='setbudget' sort='str'><![CDATA[Expected income<br> this month]]></column><column width='135' type='ro' align='left' id='spending' sort='str'><![CDATA[Income<br> this month]]></column><column width='155' type='ro' align='left' id='average' sort='str'><![CDATA[Avg income<br> per month]]></column></head><row id='topcat_13' ><cell style='background-color:#d8dadd; font-weight:bold;background-color:#e6e7e9;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'>Income</cell><cell style='text-align:right;background-color:#e6e7e9;color:green;font-weight: bold;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'>1,600</cell><cell style='text-align:right;background-color:#e6e7e9;color:green;font-weight: bold;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell><cell style='text-align:right;background-color:#e6e7e9;color:green;font-weight: bold;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell><cell style='background-color:#e6e7e9;color:black;'></cell><row id='subcat_61' ><cell style='color:#000000;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;' type='str'><![CDATA[ Investment]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'> 0</cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell></row><row id='subcat_60' ><cell style='color:#000000;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;' type='str'><![CDATA[ Interest Income]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'> 700</cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell></row><row id='subcat_62' ><cell style='color:#000000;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;' type='str'><![CDATA[ Paycheck]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'> 0</cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell></row><row id='subcat_16' ><cell style='color:#000000;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;' type='str'><![CDATA[ Bonus]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'> 0</cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell></row><row id='subcat_63' ><cell style='color:#000000;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;' type='str'><![CDATA[ Returned Purchase]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'> 900</cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell><cell style='text-align:right;color:green;border-bottom-color:#e6e7e9;border-bottom-width:2px;border-bottom-style:solid;border-right-color:#ccc;border-right-width:1px;border-right-style:solid;border-left-color:white;border-left-width:1px;border-left-style:solid;'><![CDATA[£0]]></cell></row></row></rows> not working in IE please help I am using pro edition of DHTMLX Answer posted by Support on Sep 05, 2008 01:44 The same code works correctly in local samples. Working sample sent by email |