Hi,
I am using WebDataGrid. I am doing sorting for templated column.
<ig:Sorting SortingMode="Single" Enabled="true">
<ColumnSettings>
<ig:SortingColumnSetting ColumnKey="Mgr" Sortable ="true"/>
</ColumnSettings>
<SortingClientEvents ColumnSorting="gridResult_Sorting_ColumnSorting"
ColumnSorted ="gridResult_Sorting_ColumnSorted"/>
Column sorted event on aspx
function gridResult_Sorting_ColumnSorted(sender, eventArgs) {
if ((eventArgs.get_column().get_key() == "Mgr")) {if (document.getElementById("HiddenSorting").value == "0") {
return;}
But I am getting error if ((eventArgs.get_column().get_key() == "Mgr")).
Error: JavaScript runtime error: Object doesnot support property or method 'get_column'
Please let me know , how to resolve this
Thanks
Amar
Hello Amar,
Please note that WebDataGrid currently does not support sorting on template columns. As the columnSorted event is fired after the callback to apply the sorting on the server, it is possible that the arguments would not be passed to that column since it does not support sorting. A custom solution for configuring sorting on a template field by using a hidden bound data field to store the data for sorting can be found at:
http://ko.infragistics.com/community/forums/t/67075.aspx
Please feel free to contact me if you have any questions.
Please feel free to contact me if you need additional information regarding this matter.