RadMarkupEditor focus

2 posts, 0 answers
  1. T
    T avatar
    7 posts
    Member since:
    Jan 2015

    Posted 30 Jun 2015 Link to this post

    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

  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 01 Jul 2015 Link to this post

    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

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top