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
60
UltraWebGrid Sort Column Cancel
posted

Just upgraded to 9.1.20091.2055 and now I am having issues with my SortColumn call.  Everything was working correctly before I upgraded.  Basically I am canceling the native sorting of the UltraGrid then passing some values over to my stored procedure to handle the sorting in SQL.  I am doing this because I am doing some custom data paging as well.  See code below, any clues?

 

 

 

 

 

 

 

 

 

protected

 

void UltraWebGrid1_SortColumn(object sender, Infragistics.WebUI.UltraWebGrid.SortColumnEventArgs e)

{ e.Cancel =

true; // cancels the native sorting of the UltraGrid

 

 

if (hfSortDirection.Value == "Ascending" && hfSortColumn.Value == UltraWebGrid1.Columns[e.ColumnNo].Key)

{

hfSortDirection.Value =

"Descending";

}

 

 

else if (hfSortDirection.Value == "Descending" && hfSortColumn.Value == UltraWebGrid1.Columns[e.ColumnNo].Key)

{

hfSortDirection.Value =

"Ascending";

}

 

 

else

{

hfSortDirection.Value =

"Ascending";

}

hfSortColumn.Value = UltraWebGrid1.Columns[e.ColumnNo].Key;

}

  • 29417
    Suggested Answer
    Offline posted

    Hello dmcclurg ,

     

    I know it has been a while since you posted your question in our forum but if you still need assistance I’d be glad to offer some.

    Since 9.1.20091.2055 is not the latest service release for 9.1 I’d advise you to the upgrade latest one since this issue might already be resolved in it.

     

    If upgrading still doesn't resolve this issue I would need some further information.It would be helpful if you could provide a sample with this behavior since I’m not completely sure what your exact scenario is.Could you also provide some environment information like the browser and its version that you're using.

     

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support