This example shows how use the client-side ASPxClientDashboard.ItemClick event to get data from a clicked dashboard item.
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:
- Call the GetData method to request the ASPxClientDashboardItemData object that contains information about the item data.
- Call the GetAxisNames method to get a list of displayed axes.
- Use the GetDimensions and GetAxisPoint methods to get information about dimensions that correspond to each axis.
- 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.
- Client Side API Overview for ASP.NET Web Forms Dashboard
- Obtain Underlying and Displayed Data in ASP.NET Web Forms Dashboard Control
- Dashboard for ASP.NET Core - How to obtain a dashboard item's client data
- Dashboard for ASP.NET Core - How to obtain a dashboard item's underlying data for a clicked visual element
- Dashboard for ASP.NET Core - How to obtain underlying data for the specified dashboard item
- Dashboard for Web Forms - How to obtain a dashboard item's client data
- Dashboard for Web Forms - How to obtain a dashboard item's underlying data for a clicked visual element
- Dashboard for Web Forms - How to obtain underlying data for the specified dashboard item
(you will be redirected to DevExpress.com to submit your response)