Categories | Question details Back To List | ||
Adding footer Rows with XML I want to load the grid definition whit XML, and I want to put a footer on the columns id "totalprice", "CV" and "itemqty", but I can't because when I put any definition in the XML (in the param from the attachFooter), the footer is scrolling down every time. I try whit many param combination in the attachFooter, but every definition has the same result or I have a javascript error. I want to sum the result in the header. My XML is like this. <?xml version="1.0" encoding="UTF-8" ?> <rows> <head> <beforeInit> <call command="attachFooter"> <param>1</param> </call> </beforeInit> <column width="*" type="ed" align="left" sort="str" id="itemcode">$itemcodelbl</column> <column width="*" type="ro" align="left" sort="str" id="itemdescription">$itemdescriptionlbl</column> <column width="*" type="ro" align="left" sort="str" id="price">$priceelbl</column> <column width="*" type="ro" align="left" sort="str" id="stock">$onstocklbl</column> <column width="*" type="ed" align="left" sort="str" id="itemqty">$qty</column> <column width="*" type="ro" align="left" sort="str" id="cv">$pvlbl</column> <column width="*" type="ro" align="left" sort="str" id="totalprice">$totalpricelbl</column> <settings> <colwidth>%</colwidth> </settings> </head> <row id="new"> <cell></cell> <cell></cell> <cell></cell> <cell></cell> <cell></cell> <cell></cell> <cell></cell> </row> </rows> and I use dhtmlxGrid_v20_pro_81009. And, how I change the label "Total Quantity" from the footer, (I need change this label in many language, then I need put this definition from the XML) Answer posted by dhxSupport on Aug 06, 2009 01:37 >>but I can't because when I put any definition in the XML (in the param from the attachFooter), the footer is scrolling down every time Footer allways appears under the grid container, not under grid header or somewhere else >>I try whit many param combination in the attachFooter, but every definition has the same result or I have a javascript error Could you please provide more information what java script error do you have? >>I want to sum the result in the header. My XML is like this. If you need sum resul in the header, you can put #stat_total like the necessary column label or attach new header to the grid with attachHeader method. Please find more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Headers_and_footers.html#grid_art_hdrftr http://dhtmlx.com/docs/products/dhtmlxGrid/doc/guide.html#grid_autocalcvals http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_stat_counters.html#grid_art_custstat http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid |