Ajax HTMLChart Tooltip issues

2 posts, 0 answers
  1. Philipp
    Philipp avatar
    27 posts
    Member since:
    Mar 2011

    Posted 19 Apr Link to this post

    Hi everybody,

    we've recently updated to Telerik 2016 Q1 SP1 with latest Hotfix.

    I am still facing some minor issues with the HTMLChart. There is a class called .k-chart-tooltip and after the upgrade this class is totally missing.
    The html-markup is still referencing to this class but it can not be found in the resources, it is not there. Any help on this?

    Another thing is that i give the possibility to make a cahrt 'small' or 'big'. The javascript code for this functionality looks like this:

    function makeSmallGraph(chart) {
                if (chart == null) { chart = $find('<%=cGraph.ClientID%>'); }
                             
                chart._chartObject.options.series[0].labels.visible = false;
                chart._chartObject.options.series[1].labels.visible = false;
                chart._chartObject.options.series[2].labels.visible = false;
                chart._chartObject.options.series[3].labels.visible = false;
                chart._chartObject.options.title.visible = false;
                chart._options.valueAxis[0].title.visible = false;
                chart._chartObject.options.valueAxis.title.visible = false;
                chart._options.categoryAxis.title.visible = false;
                chart._chartObject.options.categoryAxis.title.visible = false;
     
                chart.repaint();
            }
     
            function makeBigGraph(chart) {
                if (chart == null) { chart = $find('<%=cGraph.ClientID%>'); }
                             
                chart._chartObject.options.series[0].labels.visible = true;
                chart._chartObject.options.series[1].labels.visible = true;
                chart._chartObject.options.series[2].labels.visible = true;
                chart._chartObject.options.series[3].labels.visible = true;
                chart._chartObject.options.title.visible = true;
                chart._options.valueAxis[0].title.visible = true;
                chart._chartObject.options.valueAxis.title.visible = true;
                chart._options.categoryAxis.title.visible = true;
                chart._chartObject.options.categoryAxis.title.visible = true;
     
                chart.repaint();
            }

     

    After calling 'makeBigGraph' there are no more tooltips showing up. after calling 'makeSmallGraph' tooltips are back! Why?
    We used version 2015 Q1 before upgrading to the latest build and i had none of the Problems described.

    Kind regards

    Philipp

  2. Philipp
    Philipp avatar
    27 posts
    Member since:
    Mar 2011

    Posted 19 Apr Link to this post

    Hi again,

    i found the problem. I created a class that just inherits the radHTMLChart like this:

    Public Class myHTMLChart
        Inherits Telerik.Web.UI.RadHtmlChart
     
        Public Sub New()
            MyBase.New()
        End Sub
     
    End Class

    When i use this class the described behavior happens to be, i think i am missing some kind of directive. I am using the telerik base-class right now and everything works fine. With Version 2015 Q1 my class also worked fine. 

    Greetings

    Philipp

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top