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

ActionLink as a Title

2 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anderson
Top achievements
Rank 1
Anderson asked on 05 Mar 2014, 12:13 AM
Hi,

I was wondering if it's possible to embed an ActionLink in the title of any given chart.
@(Html.Kendo().Chart()
    .Name("KendoChart")
    .Title(title => title.Text("Data Chart"))
    .Series(s =>
        {
            s.Line(new int[] { 91, 95, 99, 93, 98, 98, 97, 100 }).Color("blue").Width(4.0);
        })
        .CategoryAxis(catAxis => catAxis.Categories(new string[] { "July", "August", "September", "October", "November", "December", "January", "February"}))
 )

So instead of "Data Chart" as the title, I want to put in something like:

Html.ActionLink("Chart Title", "SomeActionName",  "ActionController", new {target="_blank"})

2 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 06 Mar 2014, 10:55 AM
Hi Anderson,

I am afraid that this behavior is currently not supported, because the Chart's title is rendered via SVG <text> tag, which does not render any HTML tags within it.

Regards,
Alexander Popov
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Anderson
Top achievements
Rank 1
answered on 11 Mar 2014, 04:01 PM
Thanks
Tags
General Discussions
Asked by
Anderson
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Anderson
Top achievements
Rank 1
Share this question
or