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

[Solved] Localized Sort in RadGrid

2 Answers 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 26 May 2009, 10:27 PM
Although my thread's current culture and current UI culture is set to "cs-CZ", the built-in sorting is not sorting "H" before "C" as expected.  I have not been able to locate an example that shows how to make the grid honor the current culture's sorting like a DataView would.

Has someone accomplished this with the Q3 2008 Ajax release?

Thanks,
Chris

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 29 May 2009, 02:19 PM

Hello Chris,

I am reposting here the reply my colleague Tsvetoslav provided in the support ticket you opened with regards to this subject:

If you set the culture of the current thread, RadGrid's sorting should take it into account and sort accordingly. I tested the Czech culture both under 2.0 and 3.5 and the grid sorts as expected - as evidenced by the samples I am attaching to this post.

Best regards,

Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chris
Top achievements
Rank 1
answered on 29 May 2009, 03:40 PM
You are correct.  If you set the CurrentCulture and CurrentUICulture of the thread correctly, no special consideration is needed to make the grid sort properly.

It appears that my problem was caused by a combination of not remembering the Czech sorting rules properly at one point and someone changing my environment back to en-US without me noticing at a different point.

Thanks for the good support.
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Chris
Top achievements
Rank 1
Share this question
or