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

[Solved] Sorting Image in wrong column

4 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oleg Medyanik
Top achievements
Rank 1
Oleg Medyanik asked on 22 Sep 2009, 08:19 AM
Hi.
I have the following client-side bound grid
    <telerik:RadGrid runat="server" ID="RadGrid1" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"  AllowMultiRowSelection="true" PageSize="20" Skin="Outlook" 
        OnItemCreated="RadGrid1_ItemCreated"
        <MasterTableView ClientDataKeyNames="UniqueID,InvoiceID,BofStreamID,EDIStreamID,ValidationStreamID,IsReleased,IsLocked,IsSent,IsInvalid,IsExportedToQB"
            <Columns> 
                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"
                <HeaderStyle Width="30px" /> 
                </telerik:GridClientSelectColumn> 
                <telerik:GridTemplateColumn UniqueName="Status" AllowFiltering="false" DataField="UniqueID"
                <HeaderStyle Width="60px" /> 
                <ItemTemplate> 
                      <id="ViewLink" runat="server" href="javascript:void(0);"><img src="/uht2/images/icon-bc-saved.png" height="16" width="16" alt="Saved" title="Saved" /></a
                      <img src="/uht2/images/icon-bc-quickbooks.png" style="display:none;" height="16" width="16" alt="Exported to QB" title="Exported to QB" /> 
                </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Company Name" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" DataType="System.String" > 
                    <HeaderStyle Width="32%" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="UniqueID" HeaderText="Unique ID" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" DataType="System.String"
                    <HeaderStyle Width="14%" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="DocNumber" HeaderText="Invoice #" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" DataType="System.String"
                    <HeaderStyle Width="12%" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Currency" HeaderText="Currency" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" DataType="System.String"
                    <HeaderStyle Width="5%" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="TotalAmount" HeaderText="Total" DataType="System.Decimal" DataFormatString="{0:C2}"
                    <HeaderStyle Width="10%" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="LastUpdated" HeaderText="Last Updated" AllowFiltering="false" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy hh:mm tt}"
                    <HeaderStyle Width="15%" /> 
                </telerik:GridBoundColumn> 
            </Columns> 
            <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom"  /> 
        </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="true" > 
            <DataBinding SelectMethod="GetDataAndCount" Location="BCGridService.svc" SortParameterType="List" FilterParameterType="List" ></DataBinding
            <ClientEvents OnDataBinding="RadGrid1_DataBinding" OnRowContextMenu="RadGrid1_RowContextMenu" OnRowDataBound="RadGrid1_RowDataBound"/>          
            <Selecting AllowRowSelect="true"  /> 
        </ClientSettings> 
    </telerik:RadGrid> 

and when i do sorting on Unique ID column, arrow appears under Status column.
For all other columns sorting is just fine.
screenshot

Telerik.Web.UI.dll version is 2009.2.826.35

Please advise some workaround

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Sep 2009, 09:55 AM
Hi Oleg,

Unfortunately I could not reproduce the issue on the live site. In order to find a quick solution/fix I will ask you to open a formal support ticket and send us a simple working project that reproduce this erroneous behavior. Thus I could do all my best to help you further in resolving it.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Oleg Medyanik
Top achievements
Rank 1
answered on 24 Sep 2009, 06:45 AM
Hi Pavlina,
I've created support ticket # 245313 on behalf of our corporate account  and submitted demo project.
Thank you.

0
Pavlina
Telerik team
answered on 24 Sep 2009, 03:48 PM
Hello Oleg,

To avoid duplicate posts, we will continue our communication in the support ticket that you have opened on the matter.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Oleg Medyanik
Top achievements
Rank 1
answered on 25 Sep 2009, 05:28 AM
Hi Pavlina,
Thank you very much for quick feedback and for pointing out the issue reason!

Tags
Grid
Asked by
Oleg Medyanik
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Oleg Medyanik
Top achievements
Rank 1
Share this question
or