HtmlRadChart bar action url

3 posts, 0 answers
  1. Humberto
    Humberto avatar
    2 posts
    Member since:
    Feb 2014

    Posted 09 Feb 2014 Link to this post

    Hello my name is Humberto and i need put a link in a stakbar of my RadHtmlChart but i can't find some way to do it
    can you help me?
  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 11 Feb 2014 Link to this post

    Hi Humberto,

    You can handle OnClientClicked/OnClientHovered client-side event of the chart where can be obtained additional columns from the data source that contains the links which are to be redirected. For example:
    <script type="text/javascript">
        function OnClientSeriesClicked(sender, args) {
            var currLink = args.get_dataItem().myLinks;
  , "_blank");
    <telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" Width="600" Height="400" OnClientSeriesClicked="OnClientSeriesClicked">
                <telerik:ColumnSeries DataFieldY="myYValues" Name="Series 1">
                            Redirect to #=dataItem.myLinks#
                            Redirect to #=dataItem.myLinks#
            <XAxis DataLabelsField="myXValues">
        <ChartTitle Text="Chart Title">

    protected void Page_Load(object sender, EventArgs e)
        RadHtmlChart1.DataSource = GetData();
    protected DataTable GetData()
        DataTable dt = new DataTable();
        dt.Rows.Add(1, 30, "");
        dt.Rows.Add(2, 10, "");
        dt.Rows.Add(3, 20, "");
        return dt;

    You may also find useful ClientTemplate for Series Labels and Tooltips help article.

    Danail Vasilev
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. Humberto
    Humberto avatar
    2 posts
    Member since:
    Feb 2014

    Posted 12 Feb 2014 in reply to Danail Vasilev Link to this post

    Thanks a lot Danail Vasilev !!!
    i can do what you show me

    Best Regards.
Back to Top