RadAjaxManager question

2 posts, 0 answers
  1. John
    John avatar
    7 posts
    Member since:
    Mar 2013

    Posted 19 Jun 2013 Link to this post

    I used the following code to avoid postback of my button(btnS), and it works. When we click on the button, a radwindow which contains a repeater repR will show up:

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="True">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btnS">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="repR" />
                    </UpdatedControls>
                </telerik:AjaxSetting>  
            </AjaxSettings>        
        </telerik:RadAjaxManager>

    However, if I have another button (btnW) which is within a repeater, and I used the following code. it didn't work. If i click on the button btnW, a radwindow which contains a repeater repV will show up, but still cause postback.

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="True">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btnS">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="repR" />
                    </UpdatedControls>
                </telerik:AjaxSetting>  
                   
                <telerik:AjaxSetting AjaxControlID="btnW">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="repV" />
                    </UpdatedControls>
                </telerik:AjaxSetting>  
            </AjaxSettings>     

        </telerik:RadAjaxManager>

    Can anybody tell me how i can avoid the postback in this case?

    Thanks
  2. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 24 Jun 2013 Link to this post

    Hello John,

    I would recommend you to review the following help article which describes how to use RadWindow with Ajax.

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top