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.
Unfortunately, activation email could not send to your email. Please try again.

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

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

C#

 

 

 

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

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
2759 11/21/2014 11/25/2014 Silverlight OlapClient
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.