RadDatePicker (Support string value like "*")

8 posts, 0 answers
  1. Amit Patel
    Amit Patel avatar
    71 posts
    Member since:
    Sep 2009

    Posted 31 Jan 2011 Link to this post

    Hello,
    I have a grid that has RadDatePicker control in date column. The records in the grid are called template which user can create a numer of them.  These templates get applied during the process to the project based on the matching criteria. Now I want the feature where user can apply template to every project regardless of matching dates during the process if the date contains "*".  Is there a way to customize datepicker control to support "*" as input value?

    Thanks
    Amit
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 02 Feb 2011 Link to this post

    Hello Amit Patel,

    The RadDateTimePicker can accept every input. Then it tries to convert it to a valid date time format. Also the control support an event ("ParseDateTimeValue") where you can set your own parsing logic(setting it via the ParseDateTimeEventArgs parameter). There you can handle your use case.

    Kind regards,
    Kaloyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Amit Patel
    Amit Patel avatar
    71 posts
    Member since:
    Sep 2009

    Posted 05 Feb 2011 Link to this post

    Thanks for replay!
    I also need to be able to display "*" when user opens up the template next time. Is this possible too?

    Amit
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 09 Feb 2011 Link to this post

    Hi Amit Patel,

    You can attach an event handler to the DropDownOpened event and do the following trick:

    private void radDateTimePicker_DropDownOpened(object sender, RoutedEventArgs e)
            {
                radDateTimePicker.SelectedValue = null;
                radDateTimePicker.DateTimeWatermarkContent = "*";
            }

    Greetings,
    Kaloyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  6. Amit Patel
    Amit Patel avatar
    71 posts
    Member since:
    Sep 2009

    Posted 09 Feb 2011 Link to this post

    Thanks for reply Kaloyan!
    Honestly, this is not gonna work. I need to be able to support atleast 3 states empty, "*", and actual date. Are you planning on supporting these features in the future version, and meantime, is there way to extend the control to be able to support above mention state?

    Thanks,
    Amit
  7. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 11 Feb 2011 Link to this post

    Hello Amit Patel,

    We will take that into account for the next iteration of the control. Thanks for the suggestion.

    Greetings,
    Kaloyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  8. Amit Patel
    Amit Patel avatar
    71 posts
    Member since:
    Sep 2009

    Posted 18 Jul 2011 Link to this post

    Can anyone tell me if the string is supported in new version now?
    Thanks
    Amit
  9. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 22 Jul 2011 Link to this post

    Hello Amit,

    I am sorry, but this is still not supported in the current version of the controls. I have added this feature request in PITS. You can view it here. You can vote for it, track its status and see when it is going to be implemented.

    Regards,
    Konstantina
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
DevCraft banner