Seems I cant figure out anything on my own. Anyway, looking to set a total for a column in the footer. I see examples for the UltraWebGrid but nothing for the WebDataGrid. Thanks.
Hello,
At this time the WebDataGrid does not support this feature. It will be included in future version of the control.
You can use a template within the column footer that can display total of that column.
-Taz.
I am trying to update the footer (during editing) by utilizing Javascript on the CellChanged event but need to know how to access the Footer row in CSOM.
If that cant be done, any other way on keeping the footer template label updated?
Btw, I'm using Clientside event because the server-side ActiveCellChanged and/or CellSelectionChanged events dont seem to be firing when I changed cells.
Actually, instead of using a template you can directly use the "Text" of the footer to set a display value within the columns footer. In Javascript, you can capture the footer element using the "_footerElement" property off of the column object. But, this is an internal property at the moment. I will put it as a feature request so that this is supported as a public property so that it can be used for cases like this.
var grid = $find("WebDataGrid1");
var col = grid.get_columns().get_column(0);
col._footerElement.innerText = "New Value";
I used the same approach in my grid but I am getting the _footerElement property as null. Hence I am not able to update the footer.
Is there any other way of doing so?
Thanks