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

[Solved] Sort image not showing

4 Answers 286 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zack Turnbow
Top achievements
Rank 1
Zack Turnbow asked on 13 Jun 2008, 09:34 PM
Telerik Team,

I have a grid that I use to load different kinds of data. Anytime I load the grid I have a default column that is sorted. The default sorted data is sorted correctly but the sort image doesn't show up. This is and intermittent issue. Sometimes the image is there and sometimes it is not. I've tried to narrow down a pattern but its a completely random. Below is what I'm doing when I need to load the different grid information. The LoadGrid method is where I actually get the information from the database depending on what the users wants to look at. Please let me know if I am missing something or if this might be a bug.

RadGrid.MasterTableView.SortExpressions.Clear();
RadGrid.Rebind();

LoadGrid();

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Jun 2008, 11:27 AM
Hi Zack,

How do you bind the Grid? Try binding the Grid using AdvanceDataBinding techniques.
Advanced data-binding

Shinu.
0
Zack Turnbow
Top achievements
Rank 1
answered on 16 Jun 2008, 01:27 PM
Shinu,

   Thank you for the link but I've already examined that information. I'm using the NeedDataSource method but inside that method, I'm pointing it to another method that I retrieve different information depending on what information the user needs to see. I'm not having any problem binding the data or sorting it correctly. On the initial load of the page everything looks great. However, once the user starts looking at other data and I have to re-load the grid with different information, sometimes the sort image does not show up even though the data displayed is the correct data and it is sorted correctly. The only problem I have is getting the sort image to show up everytime, not just some of the time.

Is there some manual way of forcing the sort image to show up?

Thank you for your time,

Zack
0
Sebastian
Telerik team
answered on 16 Jun 2008, 02:54 PM
Hi Zack,

Can you please provide a live url where this issue with the sorting images can be observed? You may also copy the url pointing to the broken sorting image and try to access it directly (pasting it in the browser address bar) to see the result.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Greg Chung
Top achievements
Rank 1
answered on 16 Jun 2008, 02:58 PM
Hi Zack-

Do you allow "natural sort" ( AllowNaturalSort  )?  I normally turn it off. 

Also, if your data comes back with some column sorted by default, why are you using SortExpressions.Clear()?  Shouldn't you be setting the sort expression such that it matches the data?  It sounds like you might have no icon because you're telling the grid that the data is unsorted.  Does the arrow show up after you click on it to do the sorting?


Tags
Grid
Asked by
Zack Turnbow
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Zack Turnbow
Top achievements
Rank 1
Sebastian
Telerik team
Greg Chung
Top achievements
Rank 1
Share this question
or