axisLabelClick - Change Cursor

3 posts, 1 answers
  1. Answer
    Rich
    Rich avatar
    22 posts
    Member since:
    Feb 2012

    Posted 09 Sep 2013 Link to this post

    I apologize if this is listed somewhere but I cannot find it. Is there a way to have the cursor change to a pointer on the Axis Label? Specifically if the axisLabelClick is enabled then it would be nice if the cursor changes.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 10 Sep 2013 Link to this post

    Hello Richard,

    In order to achieve this you could use jQuery css() method. For example: 

    $("#chart").kendoChart({
        //...
        axisLabelClick: onSeriesHover,
       plotAreaClick: onPlotAreaClick
      });
     
    function onSeriesHover() {
        $("#chart").css("cursor", "pointer");
    }
             
    function onPlotAreaClick(){
        $("#chart").css("cursor", "auto");
    }
    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Rich
    Rich avatar
    22 posts
    Member since:
    Feb 2012

    Posted 10 Sep 2013 Link to this post

    That is brilliant... very simple and clean and it kind of annoys me I didn't think of that. :)

    Thanks.
Back to Top