Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nik on Feb 02, 2008 16:54
open dhtmlx forum
DhtmlxGrid

I have successfully created a dhtmlxgrid using coldfusion and dynamic xml. At the end of the list, in the last row I am using some mathematical equations to get some calculations done. These work fine. The problem I am having is when I click on the column name which is supposed to sort and it does but I do not want to sort the last row. I want the last row to appear last. Is there anyway I could set the last row not to sort and always be last row?
Answer posted by Support on Feb 04, 2008 05:16
The only way - use footer instead of normal rows.
( grid.attachFooter, or similar construct in XML - afterInit/command@call )

The latest version supports some base stat calculations in footer.
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/filtering/pro_filter_num.html
Answer posted by Nik on Feb 04, 2008 18:53
I have the latest version of dhtmlgrid standard ed. Does the attachFooter work on standard edition?
Answer posted by Support on Feb 05, 2008 01:26
This functionality available only in pro version
In case of standard version you can try to catch onAfterSorting event, and recreate row with totals as last one.