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

[Solved] RadAjax Prometheus w/ Panels and UserControls

3 Answers 111 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jacky Chau
Top achievements
Rank 1
Jacky Chau asked on 27 Dec 2007, 04:35 PM
Since RadAjax Prometheus can not ajax update container controls (such as a panel), what's the best way to set up ajaxify 10 buttons inside a div using RadAjaxManager?  Each of the 10 buttons update another control on the page.  Do I have to setup AjaxSetting for each of the 10 buttons?  Also, how do I ajax an usercontrol?  In previous version, I wrap the usercontrol inside a panel and update the panel.

3 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 28 Dec 2007, 07:47 AM
Hello Jacky Chau,

RadAjax Prometheus CAN update container controls which render HTML such as the asp:panel. It cannot update placeholder controls since they do not render any HTML, but it can work without a problem with normal containers. For more info please refer to the online examples.

Greetings,
Vladimir Milev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jacky Chau
Top achievements
Rank 1
answered on 31 Dec 2007, 05:59 PM

This is from the documentation on RadAjax prometheus:

RadAjaxManager can ajaxify only controls, making postbacks. For example, if a button resides in an ASP:Panel, ajaxifying the panel won't cause the expected (as in the previous RadAjax version result). Here is a sample, which does not work here:

<asp:ScriptManager ID="ScriptManager" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Panel1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<asp:Panel ID="Panel1" runat="server">
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
    <asp:Label ID="Label1" runat="server" ></asp:Label>
</asp:Panel>
0
Konstantin Petkov
Telerik team
answered on 02 Jan 2008, 12:59 PM
Hi Jacky Chau,

Currently, this scenario should work fine. We will test that once again and update the documentation if necessary. Thanks for bringing this to our attention.

As to your scenario, I would suggest using the new RadAjaxManagerProxy (inside user control) and configure it as necessary. You can specify each ajaxified->updated controls relation there the same way as with the manager. Take a look at the online demo here:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Manager/UserControl/DefaultCS.aspx

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Jacky Chau
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Jacky Chau
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or