Split Button

5 posts, 1 answers
  1. Ajay
    Ajay avatar
    29 posts
    Member since:
    Mar 2009

    Posted 08 Apr 2010 Link to this post

    hi,
          I have several control on form along with SplitButton now if i start pressing tab, then SplitButton is not getting highlighted when it should be. I Mean focus rectangle is not coming on Control, so user is not able to know whether SplitButton is active or not.

    Regards,
    Ajay
  2. Ajay
    Ajay avatar
    29 posts
    Member since:
    Mar 2009

    Posted 12 Apr 2010 Link to this post

    Hi,
          Kindly anyone reply, This is very important for me.

    Regards,
    Ajay
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 13 Apr 2010 Link to this post

    Hello Ajay,

    Thank you for the question.

    RadSplitButton does not get a focus rectangle, because its ActionButton elements is not focused. In order to amend this behavior, you can use the following RadSplitButton implementation:
    public class MyRadSplitButton : RadSplitButton
    {
        protected override void OnEnter(EventArgs e)
        {
            base.OnEnter(e);
      
            this.DropDownButtonElement.ActionButton.Focus();
        }
    }

    I hope this helps. If you have additional questions, feel free to contact me.

    Kind regards,
    Nikolay
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Ajay
    Ajay avatar
    29 posts
    Member since:
    Mar 2009

    Posted 19 Apr 2010 Link to this post

    Hi,
          I tried this solution (i.e. i simply take a class and override it by RadSplitButton and write the code mentioned like above), but it also didn't work.Moreover it changes the Look and feel of control and not able to draw the focus rectangle on control.

    Regards,
    Ajay
  6. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 22 Apr 2010 Link to this post

    Hello Ajay,

    Thank you for getting back to me.

    When extending an existing RadControl, you need to override its ThemeClassName property as it is described in this artlce. In addition, in order to show the focus rectangle of RadSplitButton, you should set its AllowShowFocusCues to true:
    this.myRadSplitButton1.AllowShowFocusCues = true;

    I hope that this information is helpful. If you need additional assistance, feel free to contact me.

    Kind regards,
    Nikolay
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WinForms is Visual Studio 2017 Ready