How to postback master page / client page

2 posts, 0 answers
  1. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 06 Mar 2014 Link to this post

    I am following the demo to export a radscheduler to a calendar, but I am running into a problem using master pages and content pages. I have the RadAjaxManager in the masters page and RadAjaxManagerProxy in the content page.  I am getting an error trying to do the following (code is in the content page):

        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function Export(sender, e) {
                    $find("<%= RadAjaxManager1.ClientID %>").__doPostBack(sender.name, "");
                }
            </script>
        </telerik:RadCodeBlock>

    I have this in the scheduler:
    <asp:Button runat="server" ID="Button1" CssClass="rsExportButton" ToolTip="Export to iCalendar"
                                    CommandName="Export" OnClientClick="Export(this, event); return false;" Style="cursor: pointer; cursor: hand;"></asp:Button>

    I know I am not doing this right but I don't know what to reference properly in the javascript.

    Thanks!
     
  2. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 06 Mar 2014 in reply to Darren Link to this post

    I solved my own problem by using:

    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").__doPostBack(sender.name, "");
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top