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

Sorting after ItemDataBound

2 Answers 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Joe asked on 14 Nov 2008, 04:25 PM
Hi,
I'm curious if this is possible with RadGrid... (Q2 2008 and VB)

Say I have a sortable databound column "Email" that displays:
email@hotmail.com
hithere@gmail.com
yippie@aol.com

On ItemDataBound I change the text in that column to something like:
Hotmail
Gmail
AOL

Now it seems when sorting the column, it sorts as if the original text is there. How do I get RadGrid to sort on the new "ItemDataBound" text?

Please let me know if I need to clarify.
Thanks,
Joe

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 14 Nov 2008, 04:31 PM
Hi Joe,

Sorting in the grid is accomplished at data source level. If you need custom sorting please check this example:
http://demos.telerik.com/aspnet/Prometheus/Grid/Examples/Programming/Sort/DefaultCS.aspx

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joe
Top achievements
Rank 2
answered on 14 Nov 2008, 04:36 PM
Thanks for the fast response. I'll look into that.

Regards,
Joe
Tags
Grid
Asked by
Joe
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Joe
Top achievements
Rank 2
Share this question
or