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

ajaxifying panel from usercontrol

2 Answers 122 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 31 Jan 2011, 10:38 PM
I have a page with a panel (pnlA), a radcombobox and a usercontrol. I have added ajaxsettings which allow the radcombobox to update the panel using ajax. I would like for the controls in the usercontrol to also update the panel. I have tried to add ajaxsettings so that the usercontrol itself is the ajaxified control. I have also tried wrapping the user control in a panel and using this container panel as the ajaxified control.  I have tried wrapping the controls in the usercontrol in a panel and then exposing this panel as a property of the user control, and then setting this as the ajaxified control. Lastly, I have tried exposing the individual controls as properties of the usercontrol, and then setting these as the ajaxifiedcontrols. None of these seems to allow the controls within the user control to update the original panel (pnlA) in my page. How can I do this?

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 03 Feb 2011, 12:28 PM
Hi Albert,

What happends if you have similar settings in the RadAjaxManager:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadComboBox1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlA" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="pnlA">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlA" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="userControl">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="userControl" />
                <telerik:AjaxUpdatedControl ControlID="pnlA" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Let me know if this works.

Best wishes,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 03 Feb 2011, 02:22 PM
Thanks for the suggestion. It is now working. I think perhpas before I had a missing ajaxsetting or something like that.
Tags
Ajax
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Iana Tsolova
Telerik team
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Share this question
or