Please excuse if this is a duplicate, but did not find anything using search.
I have a grid using Grid_ItemCommand like so. If I want the built-in sorting functionality to continue to work, what do I put in the "case sort" :
I have a grid using Grid_ItemCommand like so. If I want the built-in sorting functionality to continue to work, what do I put in the "case sort" :
Protected Sub rgOrderStats_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles rgOrderStats.ItemCommand Select Case e.CommandName Case "RowClick" 'show detail grid Dim index As Integer = e.Item.ItemIndex Dim item As GridDataItem = rgOrderStats.Items(index) 'Get the values from the row using the columnUniqueName Dim id As String = item("HID").Text Session("hid") = id 'call detail 'show radwindow with grid ScriptManager.RegisterStartupScript(Me.Page, Page.GetType(), "popgrid", "openDetail();", True) Case ("RebindGrid") 'refresh rgOrderStats.Rebind() Case "ExportToPdf" rgOrderStats.MasterTableView.ExportToPdf() Case "ExportToWord" rgOrderStats.MasterTableView.ExportToWord() Case "ExportToXLS" rgOrderStats.MasterTableView.ExportToExcel() Case "Sort" '?? End Select End Sub