Back to Devexpress

How to: Add a Chart to an ASPxCallbackPanel during its Callback (Runtime Sample)

aspnet-7555-components-chart-control-examples-how-to-add-a-chart-to-an-aspxcallbackpanel-during-its-callback-runtime-sample.md

latest1.6 KB
Original Source

How to: Add a Chart to an ASPxCallbackPanel during its Callback (Runtime Sample)

  • May 30, 2024
  • 2 minutes to read

This tutorial demonstrates how a WebChartControl can be added to an ASPxCallbackPanel during its callback.

  1. Create a new ASP.NET Web Application or open an existing one.

  2. Add the required assemblies to the project.

  3. Switch to the Design view of the Default.aspx page, and drop an ASPxButton from the DX.25.2: Common Controls toolbox tab onto the page.

  4. Then, click the button’s smart tag. In the invoked actions list, disable the AutoPostBack property and click Client-Side Events….

  5. Drop an ASPxCallbackPanel from the DX.25.2: Navigation & Layout toolbox tab onto the page.

  6. Set its ClientInstanceName to panel , and handle its Callback event in the following way.

Run the application to view the result.

See Also

How to: Bind a Web Chart to Data (Runtime Sample)

How to: Bind a Web Chart to an ASPxPivotGrid

How to: Use Callbacks to Update a WebChartControl Dynamically