Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ed on Aug 18, 2009 14:52
open dhtmlx forum
Formatting footer values

I'm initializing a grid from XML. I have a column that uses a custom eXcell type, so the data is formatted in a specific way. My grid also has a footer, and I would like the footer data to be formatted to match the rest of the column. Is there a way I can specify in my XML to do that? If not, is there a way I can do it in javascript after the XML is parsed?

At the very least, is there a way to get/set footer cell values? So that I can at least get the value, format it manually, and then set the value to the formatted data?
Answer posted by Support on Aug 19, 2009 02:35
>>Is there a way I can specify in my XML to do that?
By default grid doesn't apply any formatting to the footer cells. 
It possible to create a custom elements for footer , which can have separate formatting rules, but it can be too complex solution for your use-case
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_stat_counters.html#grid_art_custstat

>> is there a way to get/set footer cell values
For grid 2.1 

var val = grid.getFooterLabel(column_index, row_index);
grid.setFooterLabel(column_index, val, row_index);

row_index is optional