SeriesClick event not fired in canvas rendering mode.

3 posts, 0 answers
  1. Naveen
    Naveen avatar
    2 posts
    Member since:
    May 2012

    Posted 31 Aug 2015 Link to this post

    I'm trying to bind to the client series clicked  event to implement a drill-down feature. The event, however, is not fired when the chart is rendered as a Canvas but works fine in SVG mode. I even tried to bind the event handler to the underlying Kendo widget but still the event is not fired in canvas mode. I want to use canvas mode so as to keep the page size small.

     Following is the structure of the chart that I used. Neither the OnClientSeriesClicked nor the ClientEvents --> OnSeriesClick work in canvas mode.

    <telerik:RadHtmlChart ID="​chart" runat="server" EnableEmbeddedScripts="false"
                                        RenderMode="Lightweight" Height="350" Width="840" RenderAs="Canvas" Transitions="false" 
                                        OnClientSeriesClicked="seriesClick">
                                        <PlotArea>

                                            <YAxis Type="Numeric">
                                                <TitleAppearance Text="Y" Visible="true" />
                                                <MinorGridLines Visible="false" />
                                                <MajorGridLines Visible="true" />
                                            </YAxis>
                                            <XAxis DataLabelsField="Category">
                                                <LabelsAppearance RotationAngle="45" Visible="false">
                                                </LabelsAppearance>
                                                <MinorGridLines Visible="false" />
                                                <MajorGridLines Visible="false" />
                                            </XAxis>
                                            <Series>
                                                <telerik:​ColumnSeries DataFieldY="Value" ColorField="Color">
                                                    <LabelsAppearance Visible="false" RotationAngle="-90"></LabelsAppearance>   
                                                    <TooltipsAppearance Visible="false" />
                                                </telerik:LineSeries>                                                                                                                                    
                                            </Series>
                                        </PlotArea>
                                        <Legend>
                                            <Appearance Position="Top" Visible="false" />
                                        </Legend>
                                    </telerik:RadHtmlChart>

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3597 posts

    Posted 03 Sep 2015 Link to this post

    Hi Naveen,

    Thank you for your report. I am logging this bug for investigation and fixing and I have updated your Telerik points for bringing it to our attention. You can monitor the issue's progress in the following page: http://feedback.telerik.com/Project/108/Feedback/Details/168210-the-seriesclick-event-does-not-fire-when-renderas-canvas.

    What I can suggest for the time being is to keep using the SVG rendering to get the event. RadHtmlChart renders on the client in all cases, so the its footprint on the page size is always the same.

    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3597 posts

    Posted 03 Sep 2015 Link to this post

    Hello again Naveen,

    I am sorry for the misleading information. The fact that in Canvas mode no events are available is a design decision and it will not be changed for the time being: http://docs.telerik.com/kendo-ui/dataviz/rendering#limitations: in canvas mode the "Interactive features are not available with the exception of shared tooltips".

    If you need these events, you should use the SVG mode (or Auto, so it can adapt to VML for older browsers).

    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top