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

[Solved] Missing LoadViewState on second creation

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AlanP
Top achievements
Rank 1
AlanP asked on 18 Mar 2008, 05:41 PM
Hi,

I have a page with a server control that dynamically creates a RadGrid. The server control is nested inside of an AjaxPanel control (in the markup) with other non-Ajax controls. With the grid in edit mode, a control with autopostback causes the grid control to be created twice on the server with a definite delay between the creations. On the second creation, the LoadViewState function is skipped which causes problems.

Why is the control being created twice? Are there restrictions on autopostback controls in a grid?

Thanks,

Alan Polk

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Mar 2008, 07:18 AM
Hello Alan,

Can you post an example or a bit more info about your scenario? Can you verify if the grid is created before LoadViewState - ideally in OnInit?

Greetings,
Vlad
the Telerik team

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