Hello guys,
I am using the RadGrid component in order to display my data: ideally I would like to sort the item by the field "EventID" and I've used the following code in order to achieve that:
Which works just fine.
In my scenario I am editing one of the grid item in a modal window and, when the item is submitted, I want to refresh the parent page who contains the grid.
In order to do that I am using the following code:
Which does refresh the parent page and the grid correctly, but the latter is not sorted by descending anymore .
Do you have any advice for me?
Regards
Gavin
I am using the RadGrid component in order to display my data: ideally I would like to sort the item by the field "EventID" and I've used the following code in order to achieve that:
<SortExpressions> <telerik:GridSortExpression FieldName="EventID" SortOrder="Descending" /> </SortExpressions>Which works just fine.
In my scenario I am editing one of the grid item in a modal window and, when the item is submitted, I want to refresh the parent page who contains the grid.
In order to do that I am using the following code:
RadAjaxManager manager = RadAjaxManager.GetCurrent(this.Page);manager.ResponseScripts.Add("CloseWindowReload('" + gridReloadCommand + "','" + ((itemID == null) ? "-1" : itemID.ToString()) + "');");Which does refresh the parent page and the grid correctly, but the latter is not sorted by descending anymore .
Do you have any advice for me?
Regards
Gavin