TextBox Menu Item not Validating

3 posts, 0 answers
  1. Gone2TheDogs
    Gone2TheDogs avatar
    46 posts
    Member since:
    May 2016

    Posted 24 Oct 2017 Link to this post

    I have a textbox menu item in a submenu that isn't triggering events after the user enters a value and either clicks on the TAB or Enter key. The Validating event isn't being called. 

    I have the "causesValidation" property set and AcceptsTab set to False and AcceptsReturn set to False.

    How do I get the validation event to trigger when the user clicks on Tab or the Enter key from this textbox?






  2. Gone2TheDogs
    Gone2TheDogs avatar
    46 posts
    Member since:
    May 2016

    Posted 25 Oct 2017 in reply to Gone2TheDogs Link to this post

    More information. I added the textbox to a submenu using VS Designer. This is a "toolstripTextBox" and not a MenuItemTextBox.

    The events for this textbox were added by Visual Studio. I added "Hello World" message to the Validating event, but it never was fired.

    Any ideas on how to get this to fire? 

  3. Dess
    Dess avatar
    2683 posts

    Posted 27 Oct 2017 Link to this post

    Hello, Bob,

    Thank you for writing.  

    According to the provided information, I am not sure how exactly you set up your application. That is why I have prepared a sample project following the demonstrated approach in the following help article: https://docs.telerik.com/devtools/winforms/menus/menu/working-with-radmenu-items/nesting-controls-in-menu-items

    Indeed, the Validating event is not fired for the hosted textbox. I have logged this for further investigation because RadMenu is a non-selectable control and hosting focusable elements is a very specific case. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

    I have also updated your Telerik points.

    Currently, I can suggest you using the LostFocus event which seems to be fired on my end when another control is focused. There, you can simulate the validation.

    I hope this information helps. Should you have further questions I would be glad to help.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top