LOD Treeview+Images+Tooltip

4 posts, 0 answers
  1. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 14 Oct 2008 Link to this post

    Hi guys,

    Scenario:
    I have a LOD treeview which displays imagecategories as well as images from these categories.

    I'm using the ImageUrl property of nodes to display thumbnails and I want to display the full size images when the user hovers each thumbnail.

    Problems:
    Consider this code taken from the treeview_nodexpand sub:

        While dtrReader.Read() 
     
            Dim itemNode As New RadTreeNode(dtrReader("ImgName").ToString(), dtrReader("imgID")) 
            itemNode.ImageUrl = ConfigurationManager.AppSettings(Session("DB") & "imgDir") & "small_" & dtrReader("imgName"
            itemNode.ToolTip = "<img src='" & ConfigurationManager.AppSettings(Session("DB") & "imgDir").Replace("~/""../") & dtrReader("imgName") & "'/>" 
            node.Nodes.Add(itemNode) 
     
        End While 

    Despite having set the AutoTooltipify property to true in the tooltipmanager it doesn't kick in in this situation.

    So instead of getting the full size image as a tooltip, I simply get the string <img src=' ...

    Another minor problem is that the tooltip is just applied to the node.text and not the node.image.

    Any thoughts?

    P.S. As an end result I would really like to use LOD for the tooltips as well, I'm just not that far into this yet.

    Regards,
    -DJ-



  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 17 Oct 2008 Link to this post

    Hi -DJ-,

    I prepared a sample project which demonstrates the desired functionality. Please, note that you should add an ID attribute to the RadTreeView nodes because they do not have an ID on the client.

    Please, let me know if you need further assistance.


    Kind regards,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 24 Oct 2008 Link to this post

    Hi Svetlina,

    Thank you for the demo project.

    I didn't manage to get it fully working though. I've given up on this approach and decided not to display any tooltips for the images.

    Regards,
    -DJ-
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 24 Oct 2008 Link to this post

    Hello -DJ-,

    If you change your mind and decide to use the RadToolTip for the RadTreeView, please provide more details about the experienced problem and best - open a new support ticket and send me a reproduction project which can be run without modifications along with detailed reproduction instructions. We will also upload a new online demo for RadTreeView and RadToolTip with our next release which is scheduled for the beginning of November and you can wait until it is available and use the demo.

    Greetings,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top