/web-dashboard-get-item-data-on-click

The examples shows how to use the client-side ItemClick event to get data from a clicked dashboard item in the Dashboard for Web Forms.

Primary LanguageASP.NETOtherNOASSERTION

Dashboard for Web Forms - How to Get Data from a Clicked Dashboard Item

This example shows how use the client-side ASPxClientDashboard.ItemClick event to get data from a clicked dashboard item.

chart clicked data

Files to Look at

Example Overview

The ItemClick event handler receives arguments of the ASPxClientDashboardItemClickEventArgs type that allows you to get data displayed in a clicked item: grid rows, series points, cards. Note that some dashboard items display multidimensional data. See the Obtaining Underlying and Displayed Data help topic for more information about the general data structure.

Follow the steps below to get data from a clicked dashboard item:

  1. Call the GetData method to request the ASPxClientDashboardItemData object that contains information about the item data.
  2. Call the GetAxisNames method to get a list of displayed axes.
  3. Use the GetDimensions and GetAxisPoint methods to get information about dimensions that correspond to each axis.
  4. Use the GetSlice method to get a data slice that corresponds to the target item's element and call the GetMeasureValue method to get the last level's measure values in the slice.

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)