When working with dhtmlxTreeGrid , i want to use math function .I used the layer mode loading to auto summary ,but when Non-leaf node to load data from the database , auto summary don’t work .How do I ? Please
Unfortunately we cannot reproduce this issue locally.
Please open ticket at support.dhtmlx.com/ and provide us example where we can reproduce it.
1.script code like this
mygrid = new dhtmlXGridObject('gridbox'); mygrid.imgURL = "<%=basePath%>dhtmlx/imgs/icons_books/"; mygrid.setHeader("Title,Quantity,Total"); mygrid.setInitWidths("200,70,120") mygrid.setColAlign("left,right,right") mygrid.setColTypes("tree,button,ed[=sum]"); mygrid.setColSorting("str,int,int") mygrid.setColumnColor("#d5f1ff") mygrid.setMathRound(2); mygrid.enableMathEditing(true); //mygrid.callEvent("onGridReconstructed",[]); //mygrid.attachEvent("onRowSelect", function(id,ind){alert(id+ind)}); mygrid.init(); mygrid.enableHeaderMenu(); mygrid.loadXML("<%=basePath%>grid_math3.xml");2.xml code like this
<?xml version="1.0" encoding="UTF-8"?> Total Books Cooking 100 Cookingchila 100I change left-node value (from “100” to “101”) ,but Non-leaf node (value=“100”) can not automatically summary.How do I ? Please
Remove initial value from parent xml row
Cooking // <= 100 was removed hereWhen hardcoded value is found in XML, it replaces formula