This is a migrated thread and some comments may be shown as answers.

Chart settings goes back to Default in Preview

2 Answers 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deepak Shakya
Top achievements
Rank 1
Deepak Shakya asked on 19 Jan 2011, 04:52 AM
Hi,

I am using Q3 2010 release Trial. With my chart, I adjust the settings for my plot area. e.g. Margins and Series display as rounded corners, etc. When I Preview my data using report parameter in the parameterised query to generate the datasource, the chart is displayed but the settings are not maintained.

I have to assign the setting in "ItemDataBinding" event handler programmatically in order to maintain the layout.

Is this normal? Is there better way of doing this?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 21 Jan 2011, 02:13 PM
Hello Deepak Shakya,

Are you by any chance using Chart Skins. If this is the case, then due to the Skin property being serialized after the appearance properties, the skin is overriding those appearance properties. In order to avoid this behavior, our suggestion is to copy the Series properties and other appearance properties from the InitialiazeComponent() and add the series after the InitialiazeComponent() in code behind. Generally we do have plans for improving the Chart item but due to the tight schedule we will not make it for the Q1 2011. 

Anyway we tried to reproduce the problem with parametrized query with similar report (Product Line Sales) that has a Chart bound to a parametrized query, and in this case we are unable to replicate the described issue. Check out the demos that came with your installation of Telerik.Reporting. (Start -> All Programs -> Telerik -> Reporting Q3 2010 -> Visual Studio Examples )If you still experience any difficulties we will appreciate if you open a support ticket and send us a sample report that exhibits the issue. Once we review it and debug it locally we will be able to advise you further.

Regards,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Deepak Shakya
Top achievements
Rank 1
answered on 24 Jan 2011, 03:03 AM
Thanks Admin guys,

Yes, I am using the Skin property of the chart. Now it makes sense. I will follow your directions on applying the design parameters.

Thank you once again.

Cheers!
Tags
General Discussions
Asked by
Deepak Shakya
Top achievements
Rank 1
Answers by
Peter
Telerik team
Deepak Shakya
Top achievements
Rank 1
Share this question
or