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

[Solved] Rad AJAX client events not being raised

2 Answers 98 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Velu Sekkilar
Top achievements
Rank 1
Velu Sekkilar asked on 28 May 2009, 11:09 AM
Hi,

I have been trying to create an ajaxified RadPanelBar in my project and ran into some issues when I found that the RadAjaxManager wouldn't raise OnRequestStart and OnResponseEnd events under one specific scenario. Everything works fine if the entire panel bar itself is added to the AjaxSettings collection. The problem with client event occurs when individual panel bar items are added to AjaxSettings collection.

....RadAjaxManager1.AjaxSettings.AddAjaxSetting(panelbar1, panelbar1, RadAjaxLoadingPanel1); -- Works fine

Doesn't raise client events:

            foreach (RadPanelItem panelItem in this.panelbar1)
            {
                    RadAjaxManager1.AjaxSettings.AddAjaxSetting(panelItem, panelItem, RadAjaxLoadingPanel1);
            }


Ring a bell?

Many thanks
Velu


2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 28 May 2009, 11:33 AM
Hello Velu,

The scenario you describe is not supported because RadAjax can mark only entire controls as initiators/updated controls, not merely parts of them (panel items in your case). Therefore, only the first setting which selects the panelbar as an initiator and updated control is valid and thus the OnRequestStart/OnResponseEnd client events will be raised as expected.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Velu Sekkilar
Top achievements
Rank 1
answered on 28 May 2009, 11:38 AM
Hi Sebastian,

Many thanks for your reply.

Makes perfect sense in the way AJAX manager deals with the child controls.

Thanks again
Velu

Tags
Ajax
Asked by
Velu Sekkilar
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Velu Sekkilar
Top achievements
Rank 1
Share this question
or