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

Updating RadGrid using Ajax after edits from a User Control are saved

1 Answer 29 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 04 Dec 2011, 05:09 PM

Hi,

I have a Master page which looks like:


In the left placeholder, I have a RadGrid.  In the right placeholder I have a user control.
When a user clicks on a row in the RadGrid, the user control on the right is successfully populated and edits are allowed. 
I have a "save" button which, when clicked, successfully posts the data to the database.

Some of that data is displayed in the RadGrid.   However, after changing this data, the grid is not updated.

In the right placed holder I have a RadAjaxManagerProxy setup like so:


<!-- Ajax Manager -->
<telerik:RadAjaxManagerProxy ID="LocationAjaxProxy" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="LocationList">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="LocationInformationRadMultiPage" LoadingPanelID="RadAjaxGridLoad" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="LocationInformationRadMultiPage">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="LocationList" LoadingPanelID="RadAjaxGridLoad" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<!-- Ajax Manager -->



LocationList is the RadGrid.  The LocationInformationRadMultiPage is a RadTabStrip that contains the user control that allows editing and saving of the data.

Is this the correct approach?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 07 Dec 2011, 04:55 PM
Hi Carl,

I have examined your code and everything seems fine. You could check if you are calling the grid to rebind in the save click event so it can update the information appropriately. Additionally, you could try and debug your scenario by removing the ajaxifing of the controls and see if this causes the issue.

All the best,
Antonio Stoilkov
the Telerik team
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 their blog feed now
Tags
Ajax
Asked by
Carl
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or