Ticket T483198
Visible to All Users

Web Dashboards do not raise the ItemClick event when an end-user clicks an empty space in Chart or Pie items 

created 8 years ago

Web Dashboards do not raise the ItemClick event when an end-user clicks an empty space in Chart or Pie items. This event is raised when an end-user  clicks a data element in an item, for instance, series points, bars, or series names in the legend.

As a workaround, it is possible to access an inner widget by using the approach from Access to Underlying Widgets and handle this widget's root HTML element click event.
For example, you can use the following code for chart items:

JavaScript
if (args.ItemName == "chartDashboardItem1") { var chart = args.GetWidget(); chart.element().click(function () { alert("Click Executed"); }); }
Comments (1)
JB JB
Jonathan Barksdale 8 years ago

    This provided exactly the solution that I needed to solve a problem.  Thank you guys!

    Answers approved by DevExpress Support

    created 8 years ago

    Hello,
    We have researched this behavior in greater detail and have not found a way to raise the ItemClick event when an end-user clicks an empty space in web dashboard items since the current version of our DevExtreme widgets does not provide a corresponding event. We do not have immediate plans to change this behavior. Thus I suggest you use the workaround described in the initial post.
    Feel free to reactivate this ticket if you need any assistance with this workaround in your application.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.