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

AjaxRequest failure

2 Answers 53 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 27 Nov 2012, 06:39 PM
I have this markup which executes:
<telerik:RadAjaxManager ID="ramTicket" runat="server" OnAjaxRequest="ramTicket_AjaxRequest" DefaultLoadingPanelID="ralpPrivate">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ramTicket">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panTicketList" />
                <telerik:AjaxUpdatedControl ControlID="panTicket" />
                <telerik:AjaxUpdatedControl ControlID="panTotalTickets" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadCodeBlock runat="server">
    <script type="text/javascript">
        // The subscribed close function for the Ticket window
        function OnTicketClose(sender, args) {
            var ramTicket = $find('<%= ramTicket.ClientID %>');
            ramTicket.ajaxRequest('Rebind: ' + args);
        }
    </script>
</telerik:RadCodeBlock>
and fails to fire the server method ramTicket_AjaxRequest. I've verified that the OnTicketClose function fires with Firebug.

A related point, the loading panel appears as it should, but never goes away.

What is preventing the request?

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 30 Nov 2012, 04:54 PM
Hi Matthew,

I have created a sample web site using the provided code snippet. On my side everything works as expected and the event fires correctly. Please check out the attached application and determine the crucial differences between our projects.

Greetings,
Eyup
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.
0
Matthew
Top achievements
Rank 1
answered on 30 Nov 2012, 11:52 PM
I was able to get help from a more experienced developer today, and he discovered that the disconnect was due to a nonexistent control that the RadAjaxManager was still trying to update.

As always, thanks for being speedy.
Tags
Ajax
Asked by
Matthew
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or