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

LOD Treeview+Images+Tooltip

3 Answers 104 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
-DJ-
Top achievements
Rank 1
-DJ- asked on 14 Oct 2008, 04:37 PM
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-



3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 17 Oct 2008, 12:20 PM
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.
0
-DJ-
Top achievements
Rank 1
answered on 24 Oct 2008, 12:12 PM
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-
0
Svetlina Anati
Telerik team
answered on 24 Oct 2008, 01:03 PM
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.
Tags
TreeView
Asked by
-DJ-
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
-DJ-
Top achievements
Rank 1
Share this question
or