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
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.