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

Help with ajaxrequest

1 Answer 41 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
golddog
Top achievements
Rank 1
golddog asked on 03 Feb 2012, 09:13 PM
I have a control which is an html table of links.  We turn off various rows in this table based on user permissions and/or the state of the data.  Need help with getting the control to render after we use a RadWindow.

I think I'm pretty close.  There are two links which are kind of the on-and-off for this function.  Clicking whichever link is showing pops up a RadWindow; if the user hits the 'right' button, we want to make that link invisible and show its opposite number.

I've got the client-side handling of the RadWindow closing working, which kicks off an ajaxrequest as such:
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest('ShowRDDAssignmentRow');

I've got the handler in my code-behind properly looking at the parameter and setting each table row's visibility properly.  I can't figure out how to configure the RadAjaxManagerProxy to recognize this request and tell the control it's been updated.

I've tried setting the AjaxControlID to the link, the Proxy, and even manually in code-behind to the Manager (this being a control, of course that's not local), but I can't get the table to re-draw.  I've got a RadAjaxPanel enclosing my html table, and that panel is the updated control, so my markup is like this:
<telerik:RadAjaxLoadingPanel ID="loadingPanel" Skin="Default" runat="server" />
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManagerProxy">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ajaxPanel" LoadingPanelID="loadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Seems as if I'm missing something obvious.

Thanks,

Scott

1 Answer, 1 is accepted

Sort by
0
golddog
Top achievements
Rank 1
answered on 06 Feb 2012, 05:35 PM
In case anybody else has this kind of issue, I realized that the problem was the RadAjaxPanel wrapping my html table.

Switched that to an asp:Panel, and made the asp:Panel my ajax setting as well as the ajax updated control.  The postback through the RadWindow closure works great, and the link in question flips properly.

I don't get a loading panel displaying over the asp:Panel like I thought I would, but that's o.k.
Tags
Ajax
Asked by
golddog
Top achievements
Rank 1
Answers by
golddog
Top achievements
Rank 1
Share this question
or