Help with ajaxrequest

2 posts, 0 answers
  1. golddog
    golddog avatar
    69 posts
    Member since:
    Jun 2007

    Posted 03 Feb 2012 Link to this post

    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">
            <telerik:AjaxSetting AjaxControlID="RadAjaxManagerProxy">
                    <telerik:AjaxUpdatedControl ControlID="ajaxPanel" LoadingPanelID="loadingPanel" />

    Seems as if I'm missing something obvious.


  2. golddog
    golddog avatar
    69 posts
    Member since:
    Jun 2007

    Posted 06 Feb 2012 Link to this post

    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.
Back to Top