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

Ajaxifying a UserControl Edit Form

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 03 Mar 2011, 02:58 AM
Hello,

I have a grid that I have Ajaxified in my page by setting the grid as self-updating in my AjaxManager control.  That is, the settings look like this:

<telerik:AjaxSetting AjaxControlID="rgdMyGrid">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="rgdMyGrid" />
    </UpdatedControls>
</telerik:AjaxSetting>

This has worked to Ajaxify the regular grid functions of filtering and sorting just fine.  What I would like to do is have the usercontrol that I load for row-editing be Ajaxified, as well.  I have several radcombo boxes that I would like to update one another in the form.

Does the edit form fall within the radgrid's AjaxManager settings already (so that i shouldn't have to put in new settings for those controls?)

So far, the only way I can get these edit form combo boxes to update one another is to set them for autopostback=true.  I have functions defined in the code-behind to handle the onselectedindexchanged events.  I assumed that these would be used by the Ajax functionality if it worked (which it so far hasn't).

Do I need to autopostback for controls inside my usercontrol edit form?  Should I be Ajaxifying them differently?

Mike

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 07 Mar 2011, 04:06 PM
Hello Mike,

In the described scenario, all controls nested in the grid will cause partial postback updating the grid itself and its content.
You should set the AutoPostBack property of the comboboxes to true to make the changes in the RadComboBox selection cause an automatic postback to the server.

Do not hesitate to get back to us if any further issues arise.

Regards,
Mira
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or