Skip to main content
A newer version of this page is available. .

How to: Bind ASP.NET MVC Dashboard to an Object Data Source and Provide Data using DataLoading

  • 3 minutes to read

This example shows how to bind the ASP.NET MVC Dashboard extension to the Object Data Source and supply it with data using the DashboardConfigurator.DataLoading event. To use the created data source, run the application and create a new dashboard.


@{
    ViewBag.Title = "Index";
}

<div style="position: absolute; left: 0; right: 0; top:0; bottom:0;">
    @Html.DevExpress().Dashboard(settings => {
    settings.Name = "Dashboard";
    settings.Width = Unit.Percentage(100);
    settings.Height = Unit.Percentage(100);
}).GetHtml()
</div>