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

Split Button

4 Answers 110 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 08 Apr 2010, 12:41 PM
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

4 Answers, 1 is accepted

Sort by
0
Ajay
Top achievements
Rank 1
answered on 12 Apr 2010, 10:21 AM
Hi,
      Kindly anyone reply, This is very important for me.

Regards,
Ajay
0
Nikolay
Telerik team
answered on 13 Apr 2010, 03:14 PM
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.
0
Ajay
Top achievements
Rank 1
answered on 19 Apr 2010, 01:37 PM
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
0
Accepted
Nikolay
Telerik team
answered on 22 Apr 2010, 01:38 PM
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.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Ajay
Top achievements
Rank 1
Answers by
Ajay
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or