This is a migrated thread and some comments may be shown as answers.

Rad Grid Sorting highlight issue

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 27 Jul 2010, 03:47 PM
Hi all,

I am using Telerik RadGrid from Telerik.Web.UI (2008.2.826.35) assembly. I need to allow user to sort the data using only one column and highlight only this column. Hovewer, when grid highlights actual column (where sorting was applied by user) then the previous column (where sorting was applied before) remains to be highlighted. (see attachment).

I suspect that this is related to advanced sorting options, but setting flags bellow do not help (as described in the documentation).
AllowMultiColumnSorting="false" AllowNaturalSort="false" AllowCustomSorting="false"

I would be gratefull for any comments and suggestions. If there is a known bug in an old version of telerik assembly, please confirm it. (Looking through the demo examples on the telerik site with newer versions of rad grid, sorting highlight looks working fine).

Here is the code 

<telerik:RadGrid ID="rgSubscriptions" runat="server" ShowStatusBar="false"                     AllowAutomaticUpdates="True" GridLines="None" AllowPaging="True" PageSize="10"
                    AllowSorting="true" AllowAutomaticDeletes="True">
                    <MasterTableView TableLayout="Fixed" CellPadding="0" CellSpacing="0" DataKeyNames="ID"
                        AutoGenerateColumns="false" AllowMultiColumnSorting="false" AllowNaturalSort="false" AllowCustomSorting="false">
                         <SortExpressions>
                            <telerik:GridSortExpression FieldName="DateAdded" SortOrder="Ascending" />
                        </SortExpressions>
                        <Columns>
                            <telerik:GridTemplateColumn SortAscImageUrl="/AIMSGlobal/Images/sort_asc.gif" SortDescImageUrl="/AIMSGlobal/Images/sort_desc.gif"
                                ShowSortIcon="true" SortExpression="DateAdded" HeaderText="Date">
                                <HeaderStyle Width="100px"  />
                                <ItemTemplate>
                                    <%#GetDateFormatedString(Container.DataItem.DateAdded)%>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Subscription.DataProvider.Name" HeaderText="Data Provider"
                                AllowSorting="True" SortAscImageUrl="/AIMSGlobal/Images/sort_asc.gif" SortDescImageUrl="/AIMSGlobal/Images/sort_desc.gif">
                                <HeaderStyle Width="150px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Subscription.User.FullName" HeaderText="User"
                                AllowSorting="True" SortAscImageUrl="/AIMSGlobal/Images/sort_asc.gif" SortDescImageUrl="/AIMSGlobal/Images/sort_desc.gif">
                                <HeaderStyle Width="150px"  />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Subscription.User.UserCompany.CompanyName" HeaderText="Company"
                                AllowSorting="True" SortAscImageUrl="/AIMSGlobal/Images/sort_asc.gif" SortDescImageUrl="/AIMSGlobal/Images/sort_desc.gif">
                                <HeaderStyle Width="150px"  />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ProviderExternalID" HeaderText="Login"
                                SortAscImageUrl="/AIMSGlobal/Images/sort_asc.gif" SortDescImageUrl="/AIMSGlobal/Images/sort_desc.gif">
                                <HeaderStyle Width="150px"  />
                            </telerik:GridBoundColumn>
                            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"
                                EditText="Edit" EditImageUrl="\AIMSGlobal\IMAGES\EDIT.GIF">
                                <HeaderStyle Width="50px"  />
                            </telerik:GridEditCommandColumn>
                        </Columns>
                        <EditFormSettings UserControlName="~/Controls/DataProviderRequest.ascx" EditFormType="WebUserControl">
                            <EditColumn UniqueName="EditCommandColumn">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <SortingSettings SortedBackColor="#216898" />
                </telerik:RadGrid>

 

 

 

 

 

Thanks in advance,
Alexey

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 30 Jul 2010, 01:39 PM
Hello Alexey,

I will suggest you to upgrade the version of RadControls for ASP.NET AJAX that you are using. It seems this behavior to be fixed in later versions.

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Alexey
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or