Invalid styles in RadMarkupEditor.Value

2 posts, 0 answers
  1. Michal Zámec
    Michal Zámec avatar
    5 posts
    Member since:
    May 2010

    Posted 08 Jun 2011 Link to this post

    Hi,

    I have RadMarkupDialog hosted in a form (Editor.Parent = form). My scenario is: write something into editor (text, not markup), add a color or size for that text and click Apply.

    When I use it in VS without SP1, everything works fine. But when i try the same scenario in VS with SP1, size and color is returned to default values.

    When I looked deeper into code, I've found out, that InnerHTML value of Editor.DesignViewDomDocument.body is without size and color in FONT tag

    There are different versions of mshtml.dll (probably because of that SP) on those two computers, could that be the cause of that problem?

    Primitive app I use looks like this

    public Form1()
    {
        InitializeComponent();
     
     
        radMarkupDialog1.Editor.Parent = panel1;
     
        radMarkupDialog1.Editor.EditorClosed +=new EventHandler(Editor_EditorClosed);
    }
     
     
    void Editor_EditorClosed(object sender, EventArgs e)
    {
        // Track down ((radMarkupDialog1.Editor.DesignViewDomDocument).body).innerHTML - In VS without SP, there are font styles for color, size etc., but in VS with SP, they're gone
        ;
    }



     Thank you
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 13 Jun 2011 Link to this post

    Hi Michal Zámec,

    Thank you for writing.

    I have tested RadMarkupDialog at design time and it seems it does not work as expect, indeed. We will address this issue in one of the next releases. For the time being, you can enter the html formatted text manually.

    I have updated your Telerik points for reporting this issue. Let me know if you have any other questions.

    Best wishes,
    Martin Vasilev
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top