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

Update control on all callbacks

3 Answers 24 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 22 Aug 2013, 11:26 AM
I have a master page that has a notification control. I want to update the notification as needed during all callbacks. Is there a way to do this without having to add the control to every ajaxsetting. I use a proxy on the content pages and add ajaxsettings programmatically so I would also have to create a reference to the notification control from the master page to add it to the ajacsettings. I have over a hundred ajax calls throughout the site. I basically want to use the notification to show messages for all actions/activity on the site.

Thanks

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 27 Aug 2013, 07:23 AM
Hello Tom,

In order to achieve the required functionality you could add a setting on the main MasterPage to the main RadAjaxManager in which the manager itself updates the Notification controls and on the server AjaxRequest event call update for the notification.
Give this a try and let me know if it covers your requirements.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
0
Tom
Top achievements
Rank 1
answered on 27 Aug 2013, 01:36 PM
Thanks Maria,

I tried that. On master page. I actually tried to just use an ASP Panel (NotifyWrapper) to see if I can add some content to it using this method.

<telerik:RadAjaxManager ID="AjaxManager" runat="server" DefaultLoadingPanelID="RadAjaxLoading">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="AjaxManager">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="NotifyWrapper" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

On a callback, I add a label to the NotifyWrapper panel but it does not get displayed. I also looked at the returned data from the callback and there is nothing in there for notifywrapper.

Tom
0
Maria Ilieva
Telerik team
answered on 30 Aug 2013, 08:26 AM
Hi Tom,

As the issue still appears could I kindly ask you to open a regular support ticket and send sample runnable example which demonstrates the problem? Thus we will be able to debug it locally and apply the needed ajax settings to cover your requirements.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
Tags
Ajax
Asked by
Tom
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Tom
Top achievements
Rank 1
Share this question
or