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

User control and radAjax

1 Answer 102 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jeanne
Top achievements
Rank 1
Jeanne asked on 06 Nov 2012, 04:48 PM
I have a content page which contains a radAjaxManagerProxy (radAjaxManager is on master page). On that page I have a radGrid, a simple form, and a web user control. The web user control consists of an imagebutton (to open a radWindow), a couple of labels, and a radWindow (with a content template, NOT a url). The radWindow contains a radListBox and a submit button. Selecting an item from the radListBox in the popup radWindow and clicking the button closes the window and rebinds the radGrid. This works perfectly, but I can't get it to ajaxify - the entire page refreshes. I've tried adding the user control as the AjaxControlID and the radGrid as an UpdatedControl, but it still refreshes the whole page. A save button on the page itself is also ajaxified to update the grid, and that works fine. I just can't get the user control to update just the grid and not the whole page. I've also tried setting the id of the submit button in the window as the AjaxControlID, but that doesn't work either.

1 Answer, 1 is accepted

Sort by
0
Jeanne
Top achievements
Rank 1
answered on 06 Nov 2012, 05:52 PM
I finally got it to work, sort of, by adding the ajax settings programmatically like this:
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(pwfCompanySelector.SubmitButton, pnlForm)

But it only works every other time!

Tags
Ajax
Asked by
Jeanne
Top achievements
Rank 1
Answers by
Jeanne
Top achievements
Rank 1
Share this question
or