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

RadMarkupEditor focus

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
T
Top achievements
Rank 1
T asked on 30 Jun 2015, 10:03 AM

Hi,

It seems that the RadMarkupEditor never gets focus (Focused = false) even when you are typing something (in DesignView). Is this normal behavior?

Thanks,

Tom

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Jul 2015, 08:53 AM
Hello Tom,

Thank you for writing.

RadMarkupEditor is a UserControl and when you type in the text area, the text box is the one with the focus. Not sure what you want to achieve with the focus, but if you want to know whether the design or the html tab is selected, you can use the CommandTabSelected event of the ribbon control:
RadMarkupDialog dialog = new RadMarkupDialog();
dialog.Editor.RibbonBar.CommandTabSelected += RibbonBar_CommandTabSelected;
dialog.ShowDialog();
 
void RibbonBar_CommandTabSelected(object sender, CommandTabEventArgs args)
{
    RadMessageBox.Show("Selected Tab: " + args.CommandTab.Text);  
}

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik

Tags
General Discussions
Asked by
T
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or