Problem with RadContextMenu in the Textbox.

3 posts, 1 answers
  1. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 29 Sep 2010 Link to this post


    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. Answer
    Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 01 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 01 Oct 2010 Link to this post

    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

Back to Top