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

[Solved] Action link in chart tool tip

0 Answers 10 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ashok varma
Top achievements
Rank 1
ashok varma asked on 29 Jun 2012, 03:22 PM
Hi Telerik team,

I have been trying to include action link with parameters in telerik mvc chart control tool tip like i can provide a rough example as follows

series.Line(s => s.Goal.Measuremnt).Name("Your Goal").Markers(markers => markers.Type(ChartMarkerShape.Circle))
            .Tooltip(tooltip => tooltip
        .Template("<#=category#><br /><#= value #>&nbspSteps<br/><script src='" + @Url.Content("~/Scripts/applicationcontroller.js") + "' type='text/javascript'></script><a id='editEntry' href = '" + @Url.Action("_EditGoal", "PedoMeter", new { Value = "<#=value#>"}) + "'>Edit</a>&nbsp&nbsp<br /><a href = '" + @Url.Action("_DeletePedometerEntry", "PedoMeter") + "'>Delete</a>")

using the above iam getting two links "Edit", "Delete" and able to redirect, but the "Value" parameter is not getting populated. i mean <#=value#> is getting diplayed but when we use it in route values in controller i am getting the value as "<#=value#>" but not the orignal value that is displayed in the tooltip.

Hope some one would give a quick reply.

Thanks in advance.
Ashok
Tags
Chart
Asked by
ashok varma
Top achievements
Rank 1
Share this question
or