Input mask

8 posts, 1 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 12 Aug 2010 Link to this post

    What happened to the input mask...   I just upgraded - the previous versions had an input mask.

    Everytime I update to the newer controls things get broken and my users 'flip out'.

    thanks
  2. George
    Admin
    George avatar
    1332 posts

    Posted 17 Aug 2010 Link to this post

    Hi Jon,

    Thank you for contacting us.

    Could you please be more specific. What do you mean by saying: "the previous versions had an input mask."? If you could give us some more details on that it would be very helpful.

    I will be glad to assist you further.

    Greetings,
    George
    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. UI for WPF is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 17 Aug 2010 Link to this post

    When you typed in the data the "/" automatically showed up as mask...

    if you type in 12012010  the "/" don't appear
  5. Answer
    George
    Admin
    George avatar
    1332 posts

    Posted 18 Aug 2010 Link to this post

    Hi Jon,

     

    We made some changes in the Parser in date/time pickers and that it is what causes the described behavior. It's logged as feature request in our Public Issue Tracking System (PITS) and you can affect its priority by voting for it. The more clients' requests we receive the sooner we'll include it in our development plans. You can track this progress in our PITS with Issue ID = 2766.

    You could workaround it by implementing your own parser that suits your needs. You need to handle  the ParseDateTimeValue event and to parse the input string to DateTime value. Attached you can find a sample that I made. It illustrates how to accomplish the task.

    Please do not hesitate to contact us if you require any further information.

     

    All the best,
    George
    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
  6. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 18 Aug 2010 Link to this post

    Where can I find the attachment.. the sample project.
    thanks again
  7. George
    Admin
    George avatar
    1332 posts

    Posted 18 Aug 2010 Link to this post

    Hi Jon,

    Sorry for the missing attachment. Here it is.

    All the best,
    George
    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
  8. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 26 Aug 2010 Link to this post

    Hi..
    How do I make the slashes "/" appear as you type?
    thanks
  9. George
    Admin
    George avatar
    1332 posts

    Posted 30 Aug 2010 Link to this post

    Hi Jon,

    ParseDateTimeValue event fires when you lose focus on the RadDateTimePicker or when you enter Enter, but not while typing. Placing slashes while you are typing is not supported feature. I would suggest using RadMaskedTextBox control if you want to accomplish this.

    If you want to parse string to DateTime, for example 10112010 to 10.11.2010, I would suggest you to use ParseDateTimeValue. You could:

    • Get the inputted text from args.TextToParse property
    • Implement your own logic to convert it to DateTime value
    • Set the result to args.Result
    • Set IsParsingSuccessful to true.

    I hope this helps.

    All the best,
    George
    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
Back to Top
UI for WPF is Visual Studio 2017 Ready