Unplanned
Last Updated: 10 Mar 2016 09:44 by ADMIN
ADMIN
Stamo Gochev
Created on: 30 Jul 2013 06:31
Category: HtmlChart
Type: Feature Request
3
ADD: Client-side click event for the PlotArea of RadHtnlChart
The OnClientPlotAreaClicked event could be similar to the OnClientSeriesClicked event. It might be used for charts which are very small in size and clicking an individual series is not so easy. For the time being the following workaround can be used:
ASPX:
		<script type="text/javascript">
			function pageLoad() {
				var chart = $find("<%=RadHtmlChart1.ClientID%>");
				chart._chartObject.bind('plotAreaClick', plotAreaClick);
			}

			function plotAreaClick(e) {
				if (e.originalEvent.type === "contextmenu") {
					// Disable browser context menu
					alert('rightClick');
					e.originalEvent.preventDefault();
				}
			}
		</script>
		<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="600px" Height="400px">
			<PlotArea>
				<Series>
					<telerik:ColumnSeries Name="Product 1">
						<SeriesItems>
							<telerik:CategorySeriesItem Y="15000" />
							<telerik:CategorySeriesItem Y="23000" />
							<telerik:CategorySeriesItem Y="10000" />
						</SeriesItems>
					</telerik:ColumnSeries>
				</Series>
				<XAxis>
					<Items>
						<telerik:AxisItem LabelText="1" />
						<telerik:AxisItem LabelText="2" />
						<telerik:AxisItem LabelText="3" />
					</Items>
				</XAxis>
			</PlotArea>
		</telerik:RadHtmlChart>
0 comments