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

Programmatically setting RadToolTipManager.AjaxUpdate

2 Answers 99 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 12 May 2008, 08:32 PM
It seems that the AjaxUpdate event must be delegated before the Page's OnLoad or else any controls programmatically added to the UpdatePanel won't be shown.  I have a test page setup, and moving the AjaxUpdate delegation to OnInit solves the problem.  This is kind of an inconvenience... is there a reason it's this way?  Thanks!

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 16 May 2008, 04:08 PM
Hi Dave,
Yes, this is done on purpose. While discussing the different situations in which our control should be used, we came up with the following one:
  1. you want to "tooltipify" an element;
  2. before the RadToolTip opens, you want to dynamically add an ASP Button in it;
  3. additionally, you want to use th Click event of that button;
This situation requires that the AjaxUpdate event fires before any other event in order to ensure the Button is created early enough in the page lifecycle, so that the Click event could fire.

Having this particular situation in mind, our developers decided, that the best approach would be to fire the AjaxUpdate event before the Page_Load.

I hope I was able to explain why we have decided to implement the AjaxUpdate event this way.

All the best,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Dave
Top achievements
Rank 1
answered on 16 May 2008, 07:55 PM
Thanks very much for explaining Svetlina.  I see why this is important, and I was able to get around my inconvenience pretty easily.
Tags
ToolTip
Asked by
Dave
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Dave
Top achievements
Rank 1
Share this question
or