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

[Solved] Load usercontrol and programmatic grid

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rtk
Top achievements
Rank 1
rtk asked on 25 Mar 2009, 10:23 AM
Hey.

I have a usercontrol where i build the grid programmatic in code behind. This works fine if i add the usercontrol declarative.
But if i dynamical insert the usercontrol using loadUsercontrol, this won't work. It looks like the isPostback always is true.

protected void Page_Load(object sender, EventArgs e)
{
            if (!IsPostBack)
                DefineGridStructure();
}




1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 30 Mar 2009, 10:49 AM
Hi brajoh,

Please try following the instructions here to create your grid on Page_Init instead of on Page_Load and see if it works this way.

Sincerely yours,
Iana
the Telerik team

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