This is a migrated thread and some comments may be shown as answers.
Radgrid ajaxmanager not refreshing 2008 Q2
3 Answers 33 Views
This is a migrated thread and some comments may be shown as answers.
Bill Deihl
Top achievements
Rank 2
Bill Deihl asked on 03 Sep 2008, 01:49 PM

I update my data in a radwindow. I then call the javascript to refresh the radgrid on the parent page.

Everything works except for the final radgrid ajax refresh.

The DB is already updated; I see the select from the radgrid run but the display does not reflect the updates.

If I press the refresh or do any filtering, etc the data displays correctly..

Thanks for any help.

Bill




function refreshGrid(arg) {

if (!arg) {

$find(

"<%= RadAjaxManagerWorkQ.ClientID %>").ajaxRequest("ReBind");

}

else {

$find(

"<%= RadAjaxManagerWorkQ.ClientID %>").ajaxRequest("rgIncomingRebind"); <-Hits here!

}

}

The code behind:

Private Sub RadAjaxManagerWorkQ_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManagerWorkQ.AjaxRequest

Select Case e.Argument

Case Is = "rgIncomingRebind"

rgIncoming.Rebind()

End Select

 

End Sub

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 03 Sep 2008, 02:41 PM
Hi Bill,

You should make sure the update is performed for the Grid with regular postbacks. If that's true, it's a matter of AJAX settings to get the desired control updated. When you trigger an AJAX request explicitly, you have the AJAX Manager as AJAX initiator so you should add RadAjaxManager -> RadGrid AJAX setting.

Best wishes,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Bill Deihl
Top achievements
Rank 2
answered on 03 Sep 2008, 05:57 PM

Thanks for the response but I’m afraid I don’t follow.

 Is there another command I need to pass on the client side to get the post back on the radgrid to occur?

0
Konstantin Petkov
Telerik team
answered on 04 Sep 2008, 05:40 AM
Hello Bill,

No, you don't have to use any other client-side command. The ajaxRequest method will trigger new request but you also need to have an AJAX Manager setting like this:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            ... 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 

You may also find the RadAjax Client-Side API article helpful.

Greetings,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Bill Deihl
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
Bill Deihl
Top achievements
Rank 2
Share this question
or