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

ToolTip - Navigate

1 Answer 11 Views
TreeMap
This is a migrated thread and some comments may be shown as answers.
Sri
Top achievements
Rank 1
Sri asked on 19 Sep 2016, 02:40 PM

I would like the user to navigate to different page - if user clicks on a treemap cell ..

How to set the Redirection or Navigation to happen ?.

Using web app , aspx , vs 2015 , Kendo latest 

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 21 Sep 2016, 06:46 AM
Hello Sri,

I found the title of this thread a little confusing.There is no Kendo UI Tooltip mentioned in the question despite the title, so I will assume that the title was posted by mistake and respond regarding the Kendo UI TreeMap items in your question.

To navigate away from the Kendo UI TreeMap when a user clicks on an item you could use the jQuery wrap() method to wrap the item in an anchor tag upon its creation:

itemCreated: function(e){
 $(e.element).wrap( "<a href='#'></a>" );
},

Documentation reference for the itemCreated event is available at:

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/treemap#events-itemCreated

Alternatively, you may modify the template of each cell to include an anchor tag, either with an inline template or as a function:

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/treemap#configuration-template

Kind Regards,
Alex
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
TreeMap
Asked by
Sri
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or