Designer Error when RadChart in RadMultiPage

Thread is closed for posting
4 posts, 0 answers
  1. Dominic
    Dominic avatar
    42 posts
    Member since:
    Sep 2008

    Posted 02 Mar 2009 Link to this post


    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.

  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 05 Mar 2009 Link to this post

    Hello Dominic,

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

    Sincerely yours,
    Vladimir Milev
  3. Dominic
    Dominic avatar
    42 posts
    Member since:
    Sep 2008

    Posted 05 Mar 2009 Link to this post

    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.

  4. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 09 Mar 2009 Link to this post

    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
Back to Top