I’ve a two-level treegrid with a filters and enableSmartXMLParsing true (default).
I need that in the parents rows show me the sumatory of all children rows. In the first load (without filters) de =sum works perfectly, but when I filter by some value, the =sum not work until I expand the nodes.
I’ve been searching in your knowledge base and I know that setting the enableSmartXMLParsing to false, the =sum working correctly, isn�t it?
Anyway, I set the enableSmartXMLParsing to false to probe this issue, but now the filtering not work, the firefox shows me that error:
c is null in dhtmlxgrid.js
How could resolves this?
Thanks in advance.
that setting the enableSmartXMLParsing to false, the =sum working correctly, isn�t it?
It necessary for any TreeGrid which may contain more than two levels of data. If you are sure that your treegrid will always have 2 levels of data - you can have smartXMLParsing enabled.
You can try to add next code to the grid’s initialization
It will force =sum recalculation after filter applied
Thank you for your answer.
I’ve added your code, but not work. Maybe because I don’t use a built in filter (i.e. #text_filter)?, I am using “filterby” function.
Can It be?
If you are using direct API call, it must be as
Thank you very much, works perfectly!!!