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

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

3 Answers 74 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 15 Feb 2008, 05:10 PM
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

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 18 Feb 2008, 04:30 PM
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
0
Scott
Top achievements
Rank 1
answered on 19 Feb 2008, 03:09 PM
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. 
0
Iana Tsolova
Telerik team
answered on 21 Feb 2008, 04:27 PM
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
Tags
Ajax
Asked by
Scott
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Scott
Top achievements
Rank 1
Share this question
or