RadWindow.Prompt Illegal Characters

2 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 17 Sep 2014 Link to this post

    I am using the RadWindow.Prompt for a user to rename files and folders.  Is there a way for me to give the textbox that comes up in the Prompt the ability to ignore illegal filename characters?  { '\\', '/', '*', '<', '>', ':', '"', '?', '|' }).   Beyond Prompt I don't see how to access any other properties to do that.  I want the same behavior as Windows Explorer where if an illegal character is entered, it is just ignored as if it wasn't typed.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 18 Sep 2014 Link to this post

    Hello,

    In this case you should customize the template of RadPrompt and add some additional logic for the input control in it to avoid these characters. Please check the Styling the Predefined Windows topic in our documentation. Note that the default Style of RadPrompt could be taken from your installation folder as described in the Editing Control Templates topic.

    Hope this will help.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top