Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 18, 2009 21:37
open dhtmlx forum
How to apply display format to total

I have a column with custom cell type. I want to display total for that column in same format as of that column. Is there any way to do that.
Thanks in advance.
Answer posted by Alex (support) on May 19, 2009 03:13
Did you use setNumberFormat method to set format for value in that column ? 
Answer posted on May 19, 2009 04:51
No, I am using custom cell type for formatting values.
Answer posted by Support on May 19, 2009 06:24
Built in total counters doesn't support such use-case ( can be added through code modification ) 
If you are using custom logic you can use next code
         var editor = grid.cells(id,ind); //id and ind - coordinates of cell with the same type in the grid
         editor.cell = document.getElementById("custom_area");
         editor.setValue("new value"); //will be set to the custom_area