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

Grid edit in Custom webcontrol + postback

2 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
asddf SDFASDFF
Top achievements
Rank 1
asddf SDFASDFF asked on 02 Oct 2009, 11:30 AM
Hello

I have a problem with getting my edit mode in the grid working (the edit mode is in a custom usercontrol).
when i load the grid programmaticly in page_load everything works fine.
the problem begins when i want a button to create the grid, and give it the datasource.
when i press the button the grid shows up fine, and when i click the edit mode in a row, the grid just disappear.
if i refresh the page , the grid appear again with the edit control.

Please Help.

Thank Youy.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Oct 2009, 07:24 AM
Hello asddf SDFASDFF (nice name),

Since your grid is created on post back event you need to recreate the grid in the next page/control lifecycle.

Regards,
Vlad
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.
0
Myriam
Top achievements
Rank 1
answered on 29 Mar 2010, 08:44 PM
what does mean "page/control lifecycle."
Tags
Grid
Asked by
asddf SDFASDFF
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Myriam
Top achievements
Rank 1
Share this question
or