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

Ajax and Update Command not firing

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
stephen cossgrove
Top achievements
Rank 1
stephen cossgrove asked on 10 May 2010, 02:15 PM
Hi,

I have a user control in which a RadGrid is place with the OnUpdateCommand set to a method in the code behind. The contro works fine if placed on a page by itself.

However when i place the control inside an RadAjaxPanel event is not being fired.

Things I have tried:
1. I place an RadAjaxManager on the page, then i placed a RadAjaxManagerProxy inside the usercontrol with settting to updatedcontrol to the RadGrid1. But this does not set the event to fire.
2. moved the user control to the page outside the RadAjaxPanel and the updatecommand event fired. Moved it back into the RadAjaxPanel and the event does not fire.

The RadAjaxPanel id is "RadAjaxPanel1"
The RadGrid id is "RadGrid1"
The usercontrol id is "usrCtrl1"

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 12 May 2010, 03:54 PM
Hello stephen,

You should not be using the RadAjaxPanel and RadAjaxManager controls along-side. You should put the grid either in a RadAjaxPanel control or ajaxify it through a RadAjaxManger. When a control is ajaxified through a RadAjaxManager, what the latter does is to actually put an UpdatePanel around the ajaxified control. Thus, if at the same time the ajaxified controls is placed within a RadAjaxPanel you will get nested update panels and this will break the ajax requests more often than not.

Hope it helps.

Regards,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
stephen cossgrove
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or