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

[Solved] Saving data source from OnInit

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
QualiWareUA
Top achievements
Rank 1
QualiWareUA asked on 25 Apr 2008, 01:12 PM
Hello,

I create RadGrid dynamically in OnInit. Everything seems to be fine. But I need to store data source in ViewState. This turns to be impossible due to that fact that it is not loaded at this stage (only after OnInit). How can be this accomplished?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 Apr 2008, 10:25 AM
Hi Vladimir,

To see more information on how to save the datasource of the control, please refer to the following article, which stores the datasource passed to the control in ViewState. Although the datasource will not be available in the Init handler, you can store it when you pass the data to the grid- for example in the NeedDataSource handler.
I hope this information helps.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
QualiWareUA
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or