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

At what time declarative columns are created ?

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 12 Jan 2010, 03:33 PM
Hello,

Are declarative columns already created and accessible in:
- OnPreInit
- OnInit
or later.

Could I set the visible attribute for a column in OnInit ?
And the default Grid sort Order ?

If it can't be done here, where to set this to avoid a Rebind (assumed in OnpreRender.) ?

Thanks

CS

1 Answer, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 12 Jan 2010, 04:42 PM
Hello Christian,

The earliest you can access declarative colums is OnInit, following the general MSDN guidelines on when control properties are available and can be modified:

MSDN: ASP.NET Page Life Cycle Overview

Best wishes,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Veli
Telerik team
Share this question
or