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

Problem with RadContextMenu in the Textbox.

2 Answers 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
SivaPrasad Bevara
Top achievements
Rank 1
SivaPrasad Bevara asked on 29 Sep 2010, 10:29 AM

Hi,

I have 2 Siverlight TextBoxes in a form. I am attaching the contextmenu to the TextBoxes using SetContextMenu method. It is working well with the first textbox. After selecting the menuitem, the cursor is going to the same textbox. But when we select the menuitem from the Contextmenu for the second textbox the cursor is going to the first textbox.

How can I maintain the cursor in the same textbox where the contextmenu is opened.

Please help.

Regards,
SivaPrasad.B

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 01 Oct 2010, 07:50 AM
Hi SivaPrasad Bevara,

FocusScope is not supported in Silverlight. So this is not supported out-of-the box. But it can easily be done. Just add handler to context menu Closed event and call Focus on the context menu UIElement property.

Let us know if you need more information.

Regards,
Hristo
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
SivaPrasad Bevara
Top achievements
Rank 1
answered on 01 Oct 2010, 12:13 PM
Thank you.

I tried the same. It worked.

I thought, it will have a property to focus to the control aftre getting the data..

Regards,
SivaPrasad.B

Tags
ComboBox
Asked by
SivaPrasad Bevara
Top achievements
Rank 1
Answers by
Hristo
Telerik team
SivaPrasad Bevara
Top achievements
Rank 1
Share this question
or