Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
WebData grid template columns sorting
posted

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