I have a telerik radgrid in my application as below and related codes for binding. My Problem is eventhough I have set my GroupByFields SortOrder = "Descending" it still in ascending mode. Is there anything wrong in my code? [this is developed by previous developer and I'm new for telerik controls]. Please advice. Thanks in advance.
Dim tblTable As DataTable = DirectCast(ViewState("dtTblData"), DataTable) ''some codes ...ViewState("dtTblData") = tblTablergInvoiceList.DataSource = tblTableTry Dim expression1 As GridGroupByExpression = GridGroupByExpression.Parse("ClaimsFor [Claims Type], count(ClaimsFor) Items [My Items], Sum(Total) [Group Total] Group By ClaimsFor") Me.CustomizeExpression(expression1) Me.rgInvoiceList.MasterTableView.GroupByExpressions.Add(expression1) rgInvoiceList.Rebind()Catch ex As Exception Console.WriteLine("error" & ex.Message)FinallyEnd Try<telerik:RadGrid ID="rgInvoiceList" runat="server" CellSpacing="0" GridLines="None" ShowFooter="True" Skin="Hay" AllowSorting="True"> <ClientSettings EnablePostBackOnRowClick="True"> <Selecting CellSelectionMode="None" AllowRowSelect="True"></Selecting> </ClientSettings> <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID" AllowCustomSorting="true"> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="Total"/> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="ClaimsFor" SortOrder="Descending"/> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> </MasterTableView> <FilterMenu EnableImageSprites="False"></FilterMenu></telerik:RadGrid>