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

Designer Error when RadChart in RadMultiPage

3 Answers 54 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Dominic
Top achievements
Rank 2
Dominic asked on 02 Mar 2009, 03:14 PM

Hi,

In my application i have a radChart include in a RadMultipage who is associated with a RadTabStrip. After that, if i'm changing some UI element, i always received the error message "Error 2 RadMultiPage1:Cannot create an object of type 'Telerik.Charting.Styles.ChartMargins' from its string representation '54px, 82px, 27px, 38px' for the 'Margins' property. D:\Visual Studio 2005\Projects\QwebPRJ\IMPAQ.PRJ.WebApplication\Controls\MilestoneSummary.ascx IMPAQ.PRJ.WebApplication
" , someone knows how i can correct this behavior ? I'm using the designer to build this ui so i dont think it is a tag problem but i'm not sure what can else  can generated this error.

Thanks in advance for your helps.

3 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 05 Mar 2009, 12:58 PM
Hello Dominic,

Please try deleting any "Margins" attributes from the chart. It should resolve the issue.

Sincerely yours,
Vladimir Milev
0
Dominic
Top achievements
Rank 2
answered on 05 Mar 2009, 01:20 PM
Hi

I've already did that but if i'm changing something in the designer view the chart seems to be reinitialised because the "default" 2 series come back after i deleted them to use my own series from code-behind so the problem come back on a random base. The problem become more serious because when this error came in the designer, i CANNOT create any other controls in this usercontrol and if i'm looking the ascx.designer.vb[cs] file the new control definitions are not add in it if there is some designer error so i cannot use them in the code-behind. I can run the project without error but i cannot add any new controls in my user interface so its make me loose a lot of time if i have to delete all margins tag each time i'm using that kind of interface layout. Do you have any idea why this behavior comes out ?

Thanks for your helps.

0
Vladimir Milev
Telerik team
answered on 09 Mar 2009, 07:38 AM
Hi Dominic,

Unfortunately we cannot confirm the extact reason for the problem, but usually this kind of behavior occurs when the designer is confused about the default values of the control and serializes the properties explicitly. I'm sincerely sorry this has happened to you and will ask our developers to investigate the matter. In the mean time I can offer no other work-around than to advise you not to use the RadChart designer while this problem persists in your particular solution.

Once again, please, accept our apologies for this problem.

Sincerely yours,
Vladimir Milev
Tags
Chart (Obsolete)
Asked by
Dominic
Top achievements
Rank 2
Answers by
Vladimir Milev
Telerik team
Dominic
Top achievements
Rank 2
Share this question
or