RadMarkupEditor

6 posts, 0 answers
  1. Eric
    Eric avatar
    32 posts
    Member since:
    Jun 2011

    Posted 31 Aug 2011 Link to this post

    My company has assigned me the task of updating one of our older programs by adding a Rich Text Editor into one of the comment fields. In order to achieve this with our Q3 2009 Telerik controls, I created a button that opens a RadMarkupEditor dialog.

    My only concern is -- how can I change the title of the dialog?
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 02 Sep 2011 Link to this post

    Hello Eric,

    Using version Q3 2009 you cannot access the ribbonbar title directly. However, you can create and show the form manually Here is a sample:
    ShapedForm form = new ShapedForm();
    RadMarkupEditor editor = new RadMarkupEditor();
     
    editor.Dock = DockStyle.Fill;
    RadRibbonBar ribbonBar = (RadRibbonBar)editor.Controls[1];
    ribbonBar.Text = "hello world!";
     
    form.Controls.Add(editor);
    form.Shape = new RoundRectShape(5);           
    form.BorderWidth = 2;
    form.StartPosition = FormStartPosition.CenterScreen;
    form.BorderColor = Color.FromArgb(153, 182, 224);
    form.Padding = new Padding(3);
    form.Size = new System.Drawing.Size(600, 300);           
    form.ShowDialog();

    Please consider that we added many improvements and new controls since 2009. In Q2 2011 we introduced a new RadRichTextBox control which is fully implemented in .Net. That is why I recommend that you try our latest release. We will appreciate your feedback.

    In addition, please ask the license holder that has purchased the Telerik controls to add you as a License Developer to his account. This will allow us to continue supporting your further enquiries.

    Thank you for your understanding.
     
    Best wishes,
    Jack
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Eric
    Eric avatar
    32 posts
    Member since:
    Jun 2011

    Posted 02 Sep 2011 Link to this post

    I believe we have one of your latest controls, but this is an old application and there's a lot to modify by "moving up" our controls, especially having to change our GAC around on our virtual machines and the like.

    One more question, and I hope you'll be lenant on your rule (as my boss is on vacation and won't be back until Wednesday to add me) -- how would I be able to make the form autoclose when the "Apply" button is clicked?

    Thanks,
    Eric
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 02 Sep 2011 Link to this post

    Hi Eric,

    You can use the following code to attach to the Click event for the Apply button and close the form:
    RibbonTab tab = (RibbonTab)ribbonBar.CommandTabs[0];
    RadRibbonBarGroup applyGroup = (RadRibbonBarGroup)tab.Items[4];
    RadButtonElement applyButton = (RadButtonElement)applyGroup.Items[0];
    applyButton.Click += new EventHandler(applyButton_Click);
     
    void applyButton_Click(object sender, EventArgs e)
    {
        RadElement button = (RadElement)sender;
        RadRibbonBar ribbonBar = (RadRibbonBar)button.ElementTree.Control;
        Form form = ribbonBar.FindForm();
        form.Close();
    }

    I hope this helps. Write back after your boss adds you as a license developer and we will update our records accordingly.
     
    Regards,
    Jack
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Eric
    Eric avatar
    32 posts
    Member since:
    Jun 2011

    Posted 06 Sep 2011 Link to this post

    Instead of creating a new thread, I thought I'd ask one final question here.

    Since the way that the background color displays in a RadDataGrid is wonky, is there a way to [i]just[/i] disable the 'highlight' button? I've gotten as far as to isolate the RadItem that contains the two "buttons" (Highlight and Font Color) but can't seem to break it down any further.
  7. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 08 Sep 2011 Link to this post

    Hello Eric,

    I am not sure that I fully understand what you want to achieve. Please, could you elaborate a bit more and describe in detail the desired result.
     
    Best wishes,
    Jack
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready