RadAjaxManagerProxy - error in documentation

2 posts, 0 answers
  1. Steve LaForge
    Steve LaForge avatar
    61 posts
    Member since:
    Feb 2005

    Posted 17 Jan 2012 Link to this post

    in the 2011 Q3 documentation that is installed on my local computer during setup, I found what I am pretty sure is a typo for the RadAjaxManagerProxy.

    The ASPX code has the following:

        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function myUserControlClickHandler() {
                $find("<%= RadAjaxManager.GetCurrent(PageClientID %>").ajaxRequest("content");
            }
        </script>
    </telerik:RadCodeBlock>

    I believe that the code in the $find has an error, and should be the following instead:

    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content");

    The difference is that is should be ".GetCurrent(Page).ClientID" instead of ".GetCurrent(PageClientID".

    At least that is what works for me.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 18 Jan 2012 Link to this post

    Hi Steve,

    Thank you for reporting this typo.

    You are correct the code should look like you suggested. We will fix the mistake in our documentation so the correct version will be available in the next official release.


    Regards,
    Maria Ilieva
    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
Back to Top