Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vikram on Nov 28, 2008 00:19
open dhtmlx forum
Link and Summation on a Column of TreeGrid

Can I set a column type as link that can do summation on a tree grid. Eg:grid.setColTypes(link[=sum]) .I want to be able to do summation on the cell contents with one of the cell type being a link.

Also can I do summation on specific parents of the tree grid instead of the entire column.


Can you help me with a code snippet if possible.
Answer posted by Support on Nov 28, 2008 01:55
>>I want to be able to do summation on the cell contents with one of the cell type being a link.
Not supported by default. You can try to use customized version of link excell , which can be taken from next tread.
    http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=3344&ssr=yes&s=filter%20link%20exce

>>Also can I do summation on specific parents of the tree grid instead of the entire column.
You can set column type as link[=]
And specify in XML, formulas for necessary cells only 
    <cell>=sum</cell>