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

RadMarkupEditor

5 Answers 184 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 31 Aug 2011, 08:01 PM
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?

5 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 02 Sep 2011, 02:04 PM
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 >>

0
Eric
Top achievements
Rank 1
answered on 02 Sep 2011, 02:31 PM
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
0
Jack
Telerik team
answered on 02 Sep 2011, 04:31 PM
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 >>

0
Eric
Top achievements
Rank 1
answered on 06 Sep 2011, 03:18 PM
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.
0
Jack
Telerik team
answered on 08 Sep 2011, 02:17 PM
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 >>

Tags
MaskedEditBox
Asked by
Eric
Top achievements
Rank 1
Answers by
Jack
Telerik team
Eric
Top achievements
Rank 1
Share this question
or