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
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
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
Kindly anyone reply, This is very important for me.
Regards,
Ajay
0
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:
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.
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
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
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:
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.
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.