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

[Solved] AjaxRequest UpdatedControls

2 Answers 131 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 18 Jun 2008, 12:58 PM
Hi,

I have two buttons btn1 and btn2 , btn1 has been configured by the RadAjaxManager so that the updated Ajax control is btn2. btn2 visible property has been initially set to false. When btn1 is clicked, I set the btn2 visible property to true. Everything works fine...., however,..... btn2 has been configured to run client side script, in this script I get a reference to the RadAjaxManager and initiate a request, but there is no call to the RadAjaxManager1_AjaxRequest on the server.

It seems to me, in order to get btn2 to make the Ajax request I have to take it out of the RadAjaxManager 's <UpdatedControls> section.

Is this by design, or a bug, can you advise??

Many Thanks

P

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 20 Jun 2008, 11:49 AM
Hello Paul,
I've created a sample showing how to achieve your goals.
The main issue here is that you have to stop submiting the form i.e return false on client click on the button. That's because the default behavior of the button is to submit the form. Check the attached file.

I hope that's helpful.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul Gallen
Top achievements
Rank 1
answered on 20 Jun 2008, 01:43 PM
It was very helpful

Thanks

P
Tags
Ajax
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Paul Gallen
Top achievements
Rank 1
Share this question
or