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

[Solved] RadGrid- Setting order index property.

1 Answer 234 Views
Grid
This is a migrated thread and some comments may be shown as answers.
giridhar
Top achievements
Rank 1
giridhar asked on 30 Mar 2009, 01:31 PM
Hi,
  Inspite of setting AllowColumnsReorder="true" and setting order index, still the grid is not wrapping columns accordingly.
Following was code used in grid prerender. Do let me know the solution.
searchGrid.MasterTableView.Columns[6].OrderIndex = 7;
searchGrid.MasterTableView.Columns[5].OrderIndex = 8;

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 01 Apr 2009, 04:45 PM
Hello giridhar,

You should use the RenderColumns collection of the MasterTableView in the Page_PreRender event.

I hope this helps. 

Kind regards,
Tsvetoslav
the Telerik team

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