Server side paging with DLL on XML file

This example demonstrates using TreeGrid server side DLL/SO library for server side paging, calculations, grouping, sorting, filtering, Excel export and updates. It demonstrates especially complex grouping feature and cell editing in various groups.
Layout is in FileDef.xml, data in FileData.xml. Server side script serving data is in File.aspx. This is file is universal and works on parameters sent from client and set in <bdo> tag in this html file.
This example does not use any custom JavaScript or server script code, all features are set via XML data definitions and provided by TreeGrid!

In table there are fictive resellers around the world with their results from the first two months in year 2004.
In columns Registered, Since, Calls per and Rabat are data related to partner and can be edited only when rows are grouped by Partner (or by Location and Partner).
In columns Orders, Income and Expenses are results from every partner's month and can be edited in any grouping.
Column Gross profit is calculated (Income - Expenses), Discount is calculated (Gross profit x Rabat) and Profit is calculated (Gross profit - Discount).
In bottom Total results row is summary of the results for whole table, in individual group rows when the grid is grouped is summary for given group.
When are rows grouped by Location and Partner you can drag and drop partners to another location, add new partner to the location or delete the partner. You can also change the whole location by choosing another.