Programmatically setting RadToolTipManager.AjaxUpdate

3 posts, 1 answers
  1. Dave
    Dave avatar
    12 posts
    Member since:
    Mar 2008

    Posted 12 May 2008 Link to this post

    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. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 16 May 2008 Link to this post

    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Answer
    Dave avatar
    12 posts
    Member since:
    Mar 2008

    Posted 16 May 2008 Link to this post

    Thanks very much for explaining Svetlina.  I see why this is important, and I was able to get around my inconvenience pretty easily.
Back to Top