Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Natalia Kazakova authored Jun 15, 2017
1 parent a2fda8d commit 6a6d7af
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,30 @@ This custom item supports the [Master-Filtering](https://documentation.devexpres

## Installation

1. Download the required version of scripts [here](https://github.com/DevExpress/dashboard-extension-online-map-item/releases) and add the *dist* folder in your project.
1. Download the latest version of scripts [here](https://github.com/DevExpress/dashboard-extension-online-map-item/releases) and add the *dist* folder in your project.

2. Attach the download script to the project.
```xml
<script src="/your-path/dashboard-extension-online-map-item/dist/online-map-extension.min.js"></script>
<head>
<script src="/your-path/dashboard-extension-online-map-item/dist/online-map-extension.min.js"></script>
<!-- ... -->
</head>
```

3. Handle the Web Dashboard's [BeforeRender](https://documentation.devexpress.com/#Dashboard/DevExpressDashboardWebScriptsASPxClientDashboard_BeforeRendertopic) event to perform client-side customization of the Web Dashboard control before the control and its elements have been rendered.
```xml
<dx:ASPxDashboard ID="ASPxDashboard1" runat="server" DashboardStorageFolder="~/App_Data">
<!-- For ASP.NET Web Forms -->
<dx:ASPxDashboard ID="ASPxDashboard1" runat="server" DashboardStorageFolder="~/App_Data/Dashboards">
<ClientSideEvents BeforeRender="onBeforeRender" />
</dx:ASPxDashboard>
```
```C#
@* For ASP.NET MVC *@
@Html.DevExpress().Dashboard(settings => {
settings.Name = "Dashboard";
settings.ClientSideEvents.BeforeRender = "onBeforeRender";
}).GetHtml()
```

4. Register the custom item extension to add the Online Map to the Web Dashboard.

Expand Down

0 comments on commit 6a6d7af

Please sign in to comment.