I am having trouble with the sort function on the RadGrid. All columns are set to allow sorting, but only some columns work. When I click on the header, the grid repaints but nothing changes and the previous selected sort column remains highlighted with the sort icon visible. It will not change to some of the columns. In the same code,these columns will not sort: Modified Date , Client Name and Proposal Type. The remaining columns sort fine.
<telerik:RadGrid ID="ProposalGrid" DataSourceID="SqlDataSource1" runat="server" AutoGenerateColumns="False" AllowPaging="True" GroupingEnabled="False" Skin="Metro" OnItemDataBound="ProposalGrid_ItemDataBound"
OnPreRender="ProposalGrid_PreRender" OnItemEvent="ProposalGrid_ItemEvent" CssClass="defaultText"
OnDeleteCommand="ProposalGrid_DeleteCommand" OnUpdateCommand="ProposalGrid_UpdateCommand"
OnPageSizeChanged="ProposalGrid_PageSizeChanged" PageSize="15" OnSortCommand="ProposalGrid_SortCommand"
GroupPanelPosition="Top" ResolvedRenderMode="Classic" AllowMultiRowEdit="True" AllowMultiRowSelection="True" OnDataBound="ProposalGrid_DataBound" AllowSorting="True">
<ClientSettings EnableRowHoverStyle="True">
<Selecting AllowRowSelect="True"></Selecting>
</ClientSettings>
<MasterTableView DataSourceID="SqlDataSource1" ClientDataKeyNames="PropDesc" DataKeyNames="PropDesc"
UseAllDataFields="True" TableLayout="Auto" EditMode="EditForms" NoDetailRecordsText="There are no cases for this workbook."
NoMasterRecordsText="There are no cases for this workbook.">
<PagerStyle AlwaysVisible="true" Wrap="False" PageButtonCount="5" ShowPagerText="True" />
<SortExpressions>
<telerik:GridSortExpression FieldName="PropDesc" SortOrder="Ascending" />
</SortExpressions>
<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>
<Columns>
<telerik:GridClientSelectColumn FilterControlAltText="Filter column1 column" UniqueName="column1" DataType="System.TimeSpan">
</telerik:GridClientSelectColumn>
<telerik:GridBoundColumn DataField="PropDesc" FilterControlAltText="Filter PropDesc2 column"
HeaderText="Storage Description" SortExpression="PropDesc" UniqueName="PropDescEditorCol"
Visible="False" ColumnEditorID="PropDescEditor" HeaderButtonType="None">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False" />
<ItemStyle HorizontalAlign="Left" Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridDateTimeColumn FilterControlAltText="Filter ModifiedDate column"
HeaderText="Modified Date" ReadOnly="True" SortExpression="ModifiedDate" UniqueName="ModifiedDate">
<HeaderStyle Font-Bold="True" Wrap="False" />
<ItemStyle Wrap="False" HorizontalAlign="Left" />
</telerik:GridDateTimeColumn>
<telerik:GridTemplateColumn FilterControlAltText="Filter ClientName column"
HeaderText="Client Name" ReadOnly="True" SortExpression="ClientName" UniqueName="ClientName">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Width="100px" Wrap="False" />
<ItemStyle HorizontalAlign="Center" Width="100px" Wrap="False" />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="PresentedBy" FilterControlAltText="Filter AgentName column" HeaderText="Agent Name" UniqueName="AgentNameCol" ColumnEditorID="AgentName" ReadOnly="True" SortExpression="AgentNameCol" EmptyDataText="">
<HeaderStyle Font-Bold="True" Wrap="False" />
<ItemStyle HorizontalAlign="Left" Width="150px" Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridHyperLinkColumn DataNavigateUrlFields="PropNumber,ClientNumber,ConceptProcNum"
DataNavigateUrlFormatString="Prop={0}&ClientID={1}&WP={2}&Type=Edit"
DataTextField="PropDesc" FilterControlAltText="Filter column column" HeaderText="Storage Description"
UniqueName="PropDesc" SortExpression="PropDesc">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False" Width="160px" />
<ItemStyle HorizontalAlign="Left" Wrap="False" Width="160px" />
</telerik:GridHyperLinkColumn>
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Proposal Type"
ReadOnly="True" UniqueName="SalesConcept" SortExpression="SalesConcept">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False" Width="100px" />
<ItemStyle HorizontalAlign="Left" Wrap="False" Width="100px" />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="PolicyCaseNotation" FilterControlAltText="Filter column column"
HeaderText="Policy Notation" ReadOnly="True" SortExpression="PolicyCaseNotation"
UniqueName="PolicyCaseNotation" ItemStyle-Wrap="False">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False" Width="120px" />
<ItemStyle HorizontalAlign="Left" Wrap="False" Width="120px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PolicyInitPremium" DataFormatString="{0:$#,0}"
FilterControlAltText="Filter column1 column" HeaderText="Initial Premium" ReadOnly="True"
SortExpression="PolicyInitPremium" UniqueName="PolicyInitPremium">
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False" Width="80px" />
<ItemStyle HorizontalAlign="Right" Wrap="False" Width="80px" />
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings PopUpSettings-Modal="True" FormCaptionStyle-Wrap="False">
<EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
UniqueName="EditCommandColumn1" CancelText="Cancel edit">
</EditColumn>
<FormCaptionStyle Wrap="False"></FormCaptionStyle>
<FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
<PopUpSettings Modal="True"></PopUpSettings>
</EditFormSettings>
</MasterTableView>
<HeaderStyle Wrap="False" />
<PagerStyle AlwaysVisible="True" Mode="NextPrevNumericAndAdvanced" />
<SelectedItemStyle Font-Bold="True" />
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
​