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
close icon

Connect OlapClient to a cube

I am using OlapClient in a WPF User Control and using elementHost to display in on a Windows Form

here is the usercontrol class:

{
InitializeComponent()
Syncfusion.Olap.Manager.OlapDataManager odm = new OlapDataManager("Data source=STLDOLAP01;Catalog=PAS");
this.olapClient1.OlapDataManager = odm;
this.olapClient1.DataBind();
}

When I attempt to connect OlapClient to a cube I get this error

OlapChart template should be applied before accessing ColorModel property

1 Reply

SS S. Sridharan Syncfusion Team July 19, 2010 07:03 AM UTC

Hi Ryan,

Thanks for using Syncfusion products.

Here you are trying to access the DataBind() mehtod in Constructor. Based on our implementation we should access the DataBind() method only after the control gets loaded. Please try accessing the DataBind() method in your user control's loaded event.

Please let me know if you need some more details.

Thanks,
Sridharan S.

Loader.
Live Chat Icon For mobile
Up arrow icon