RadGrid with AjaxManagerProxy updates when I don't want it to

4 posts, 0 answers
  1. Scott
    Scott avatar
    43 posts
    Member since:
    Nov 2007

    Posted 15 Feb 2008 Link to this post

    I have a RadGrid then when an item is clicked, updates a panel.  That works great.  I then added a delete button and want that to update both the RadGrid and the panel when clicked.  That works great.  However, now the RadGrid updates itself when an item is clicked.  I have the following in my RadAjaxManagerProxy tag:

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="rgTabConfig">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="DetailPanel" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        <telerik:AjaxUpdatedControl ControlID="Buttons" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="btnDelete">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="DetailPanel" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        <telerik:AjaxUpdatedControl ControlID="rgTabConfig" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManagerProxy> 

    I have not specified rgTabConfig as an AjaxUpdatedControl for the first AjaxSetting, so why does it update?

    Thanks,
    Scott
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 18 Feb 2008 Link to this post

    Hello Scott,

    In fact that's the expected behavior. As the RadGrid is in your AjaxSettings it's being wrapped in MS UpdatePanel by the RadAjaxManager and updated when triggering request to the server from within the grid.

    Kind regards,
    Iana
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Scott
    Scott avatar
    43 posts
    Member since:
    Nov 2007

    Posted 19 Feb 2008 Link to this post

    But if I remove the second AjaxSetting (the AjaxControlID btnDelete), my RadGrid, rgTabConfig, DOES NOT update -  it works like I want.  By adding a second AjaxSetting, it seems to mess up the first AjaxSetting.

    Basically I have a radgrid, a panel with some textboxes in it, and some buttons.  When I select an item on the grid, I want the panel  and the buttons to be populated via Ajax. When I click on the buttons (which do deletes and updates), I want the panel to update, plus the grid.

    They work great when I only use one set of AjaxSettings, but when I attempt to get my desired behavior by adding 2, it doesn't work right. 
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 21 Feb 2008 Link to this post

    Hi Scott,

    Unfortunately that is the expected behavior with the new Ajax with these settings. If you don't want the grid to be ajax-ified this way, you can try a different approach - put your delete button and your panel in an AjaxPanel and then force update of AjaxPanel with the AjaxRequest() method like shown in this online help topic:
    http://www.telerik.com/help/aspnet/ajax/?ajxInteractionBetweenPanels.html

    Best wishes,
    Iana
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top