My only concern is -- how can I change the title of the dialog?
5 Answers, 1 is accepted
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 >>
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
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 >>
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.
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 >>