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

[Solved] Column Sorting Doesn't Work with ImageHeader

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Himanshu Thakur
Top achievements
Rank 1
Himanshu Thakur asked on 21 Jan 2010, 02:00 AM
Hi,

I have an issue with RadGrid Column Sorting.

As the columns does sort if I don't specify HeaderImageUrl for the grid Headers, but as soon as I try to insert image instead of the header text, sorting stops working.

I have tried using GridTemplateColum and GridBoundColumn. As soon as I remove HeaderImageUrl="images/car.png" it works.


 

 <telerik:GridTemplateColumn DataField="CarSpace" ShowSortIcon="true" HeaderImageUrl="images/car.png"

 

ReadOnly="true" SortExpression="CarSpace" HeaderTooltip="CarSpaces" UniqueName="CarSpace"

ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="20" HeaderText="Car Space">

<ItemTemplate>

<%#Eval("CarSpace") %>

</ItemTemplate>

</telerik:GridTemplateColumn>

 


 

 

<telerik:GridBoundColumn DataField="CarSpace" SortExpression="CarSpace" UniqueName="CarSpace"

 

 

AllowSorting="true" HeaderImageUrl="images/car.png" HeaderStyle-Width="20" ReadOnly="true"

 

 

ItemStyle-HorizontalAlign="Center" HeaderText="CarSpace" >

 

 

 <FilterTemplate>

 

   <%

#Eval("Carspace") %>

 

 

 </FilterTemplate>

 

 

</telerik:GridBoundColumn>


Am I missing something or is that known issue already?

Regards.

 

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 26 Jan 2010, 08:01 AM
Hello Himanshu,

I tried to reproduce the issue locally but without success. Attached to this message is the sample test project that I used for local testing. Please give it a try and let me know if you still get the issue.

Regards,
Martin
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
Himanshu Thakur
Top achievements
Rank 1
answered on 28 Jan 2010, 09:36 PM
Hi Martin,

I tried the sample code but it didn't solved out the purpose. Apparently I had to change the logic and design for the interface to incoperate the output result.

I would rather call it a "bug" which doesn't allow us to implement sorting once ImageHeaders are implemented.

Thanks.
Himanshu
0
Martin
Telerik team
answered on 29 Jan 2010, 03:32 PM
Hello Himanshu,

Just to notify you that I have answered to the support ticket you have submitted on the same topic. In order to avoid duplicate posts, I would suggest you to continue our communication in the support ticket.

Regards,
Martin
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.
Tags
Grid
Asked by
Himanshu Thakur
Top achievements
Rank 1
Answers by
Martin
Telerik team
Himanshu Thakur
Top achievements
Rank 1
Share this question
or