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

How to sort columns (Only when the Display Property is true)

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 05 Dec 2008, 05:30 PM
Hi everybody

I'm developing a application using Grids, the application permits to the users select the columns that will be showing, the user can save the "list" of visible columns and select any list and show it after.

The problem happens when I want to sort the visible columns (using the "display" property when is "true"), I have already read the information about the methods for reorder the columns as the swap or reorder methods, including using the OrderIndex property too, but I don't get to order ONLY the visible columns that the user ordered before exchanging the columns in a order desired.

I listen suggestions. Thank you


1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Dec 2008, 03:08 PM
Hello Andres,

Have you considered using the new header context menu feature of RadGrid for ASP.NET AJAX to change the grid columns visibility on-the-fly as well as to sort grid columns? You can combine this with column reordering if you prefer in order to attain the functionality you are after.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Andres
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or