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

Specify the order of auto-generated columns?

2 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
scrut
Top achievements
Rank 1
scrut asked on 24 Jul 2008, 02:43 PM
How can I specify the order of autogenerated columns in a Grid? They dont show up in the aspx and seem to be rendered randomly (sometimes EDIT is left of DELETE, sometimes its the other way around).

And: How can I set the order of autogenerated columns in conjunction with Command-Columns? Like: I have 4 columns: VIEW, EDIT, DELETE, HISTORY.
VIEW and HISTORY are Command-Columns, EDIT and DELETE are autogenerated. How can I make sure the autogenerated ones appear in this specific order in between the two Command-Columns?

Thanks

s.

2 Answers, 1 is accepted

Sort by
0
Nikita Gourme
Top achievements
Rank 1
answered on 28 Jul 2008, 12:25 PM
scrut, I reorder the columns in the Telerik RadGrid with the SwapColumn server-side method. Check this article to learn more about it.

Nikita
0
scrut
Top achievements
Rank 1
answered on 29 Jul 2008, 02:42 AM
Nikita,
thanks for your reply. While this seems to work with regular columns, it doesnt seem to work with those I had Telerik create via

AutoGenerateEditColumn="True" AutoGenerateDeleteColumn="True" 

Any idea how to define their order?

Thanks

s.
Tags
Grid
Asked by
scrut
Top achievements
Rank 1
Answers by
Nikita Gourme
Top achievements
Rank 1
scrut
Top achievements
Rank 1
Share this question
or