LoadOnDemand ComboBox in ToolTip error

3 posts, 0 answers
  1. Steve White
    Steve White avatar
    26 posts
    Member since:
    Sep 2009

    Posted 28 Sep 2009 Link to this post

    I have a TreeView with each node set as the Target for a ToolTipManager. In the ToolTip I dynamically inject a UserControl. The UserControl contains a ComboBox wired up to ItemsRequested.

    When I try to open the ComboBox to run the ItemsRequested code I get an alert:

    "The target 'controlid' for the callback could not be found or did not implement ICallBackEventHandler"

    Could you please post a small demo project that illustrates a dynamic UserControl with a LoadOnDemand ComboBox inside a ToolTip generated from a TreeView node mouseover.


  2. Steve White
    Steve White avatar
    26 posts
    Member since:
    Sep 2009

    Posted 01 Oct 2009 Link to this post

    I'm loading a usercontrol into the tooltip with a ComboBox in it. I want ItemsRequested to fire when I try to select anything in the ComboBox, but I can't get any server events to work.

    Can you give me some guidance on how to do this please?


  3. DevCraft R3 2016 release webinar banner
  4. Simon
    Simon avatar
    2281 posts

    Posted 02 Oct 2009 Link to this post

    Hello Steve White,

    This happens because the ComboBox does not exist in the Page's Control Tree when the client-side object initiates the Items request.

    So, in order to fix this the server-side ComboBox object must be added on the page during such requests on the same place in the Control Tree. Additionally, the z-index of the ComboBox's drop down must be increased, so that it appears above the Tooltip.

    Please see the attached files as a reference to the needed modifications to the Page's code.

    All the best,
    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.
Back to Top