The requested page is not available for the requested platform. You are viewing the content for Default platform.

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

  • 3 min 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>