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

Ajaxify a button

1 Answer 90 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Saurabh Srivastava
Top achievements
Rank 1
Saurabh Srivastava asked on 08 Sep 2009, 01:18 PM
Hi,

I have a asp button placed on a content page. The content page has a RadAjaxManager present on it (This handles the RadGrid at the moment.)

My button has a server side event where it does some processing and then a client script is executed to show the results in a radwindow.

Issue: I want to ajaxify the button so that the "PostBack" appearance of the screen goes away.

How can this be accomplished? I have already tried adding the button to the AjaxControlID but this does not seem to have any effect.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Sep 2009, 01:57 PM
Hello Saurabh,

To avoid duplicate posts, we will continue our communication in the other(support ticket) post that you have opened on the matter.

About the question:
You should add RadAjaxManager control in  master page and RadAjaxManagerProxy inside a content page. Then configured RadAjaxManagerProxy control the same way as the manager.

Should you need the server or client-side RadAjaxManager functionality (like ResponseScripts collection, ajaxRequest function) you can get the "master" manager instance via Server-Side GetCurrent method from the ContentPage code-behind: 

RadAjaxManager.GetCurrent(Page)

Please find more information about how to use RadAjaxManager in master->content page scenario in the following links:
RadAjax and MasterPage
Ajax / User Controls/Master pages

Regards,

Pavlina
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Saurabh Srivastava
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or