Can we extend the InputBox parsing logic?

5 posts, 0 answers
  1. Richard van Diggelen
    Richard van Diggelen avatar
    8 posts
    Member since:
    Jul 2012

    Posted 03 Mar 2010 Link to this post

    Hi there,

    We need to support some customised formats for user to type in the input box. e.g. if I type a "+5" in the input box today (03/03/2010), it needs to be converted to 08/03/2010  (the 5th day from today's date).

    We've tried to bind a converter to the datepicker, but it's too late as the input has already been updated by the default parsing logic. And the fact that having inputText as a private member is not helping either.

    So, Is there a way to change/extend the datepicker's default inputbox text parsing mechanism? Thanks in advance.




    Cheers,






  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 05 Mar 2010 Link to this post

    Hi Richard van Diggelen,

    Extending the parse logic is not supported in the current version.
    We will add it to our backlog and if there is enough support we may expose it in the future.

    Best wishes,
    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. UI for WPF is Visual Studio 2017 Ready
  4. Doots
    Doots avatar
    13 posts
    Member since:
    Apr 2011

    Posted 14 Jun 2012 Link to this post

    Hi,

    I'm highly interested in extending the parse logic of the DatePicker, could you tell me if this is now possible ? Thanks for your help.

    Doots
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 15 Jun 2012 Link to this post

    Hello Doots,

    You can use ParseDateTimeValue event of the DateTimePicker to implement custom logic.

    Hope it helps.

    Greetings,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Doots
    Doots avatar
    13 posts
    Member since:
    Apr 2011

    Posted 18 Jun 2012 Link to this post

    Hi Yana,

    This is exactely what I was looking for ! Thanks :)

    Doots
Back to Top
UI for WPF is Visual Studio 2017 Ready