We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create multiple OLAP Controls on the same Silverlight page sharing same Data Provider with different Data Managers

Platform: Silverlight |
Control: OlapClient

We can able to add multiple OLAP Controls in the same Silverlight page which shares the same Data Provider with different Data Managers. This can be achieved by adding the OlapGrid, OlapChart and OlapClient control in same Silverlight page and binding the OlapData to each one of them one by one.


Steps to achieve

  1. Create a Silverlight project along with Web project.
  2. Create a WCF service as OlapManager.svc.
  3. Inherit the newly added WCF service with the IOlapDataProvider and explicitly implement the IOlapDataProvider. The connection to the database is done with the help of the WCF service. 
  4. Add the OlapGrid, OlapChart and OlapClient controls in the MainPage.xaml.
  5. Please refer the below code snippet for sharing the same DataProvider with different Data Managers for binding the OlapData to OlapGrid, OlapChart and OlapClient Control.

The following codes should be added in MainPage.xaml.cs





Figure: OlapGrid, OlapChart and OlapClient appear in same page with same DataProvider



You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile