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

Rad grid Edit form Template not opening on first time initinsert event

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gagandeep
Top achievements
Rank 1
Gagandeep asked on 02 Nov 2012, 12:20 PM
Hi,

I have a user control with update panel, which I am opening in a popup from my page. This popup has a Rad grid which is again in another nested Update Panel. I have Edit Form in this grid.
Normal Scenario: The popup will open and on click of Add new record in the radgrid I am getting Edit form. In this scenario it works fine.

Second Scenario:  When the pop up is opened, it has values and the controls are  disabled, I have to enable the controls on server side side with the Asynch Postback. Now once i try to Click on Add new record button in the grid, it fires the event but does nothing but if we click the same button again, it will again fire the event and this time it will open the Edit form but closes the popup. I dont want the popup to be closed.
Please suggest.

Thanks,
Gagan

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 07 Nov 2012, 01:30 PM
Hi,

 Can you specify how exactly you perform the async postback to enable the controls. It appears that the first time you click the Add new record button the ajax request is not processed properly and the second time it fires an ordinary postback which refreshes the page and closes the popup. You can check whether there are any kind of client-side or server-side errors on the page during the second scenario and also whether the nested update panels are configured properly - for example if you use standard ASP.NET Upadate panels which ajax initiator controls you have specified in the triggers collection of the panel and whether they properly perform the asynchronous request by updating the correct portion of the page.

All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Gagandeep
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or