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

SeriesClick event not fired in canvas rendering mode.

2 Answers 75 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Naveen
Top achievements
Rank 1
Naveen asked on 31 Aug 2015, 06:50 PM

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 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 03 Sep 2015, 09:04 AM

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
0
Marin Bratanov
Telerik team
answered on 03 Sep 2015, 12:45 PM

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
Tags
Chart (HTML5)
Asked by
Naveen
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or