This is a migrated thread and some comments may be shown as answers.

RadDatePicker (Support string value like "*")

7 Answers 57 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Amit Patel
Top achievements
Rank 1
Amit Patel asked on 31 Jan 2011, 05:23 PM
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

7 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 02 Feb 2011, 09:40 AM
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>>
0
Amit Patel
Top achievements
Rank 1
answered on 06 Feb 2011, 03:33 AM
Thanks for replay!
I also need to be able to display "*" when user opens up the template next time. Is this possible too?

Amit
0
Kaloyan
Telerik team
answered on 09 Feb 2011, 09:13 AM
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>>
0
Amit Patel
Top achievements
Rank 1
answered on 09 Feb 2011, 09:22 PM
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
0
Kaloyan
Telerik team
answered on 11 Feb 2011, 09:41 AM
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>>
0
Amit Patel
Top achievements
Rank 1
answered on 18 Jul 2011, 07:45 PM
Can anyone tell me if the string is supported in new version now?
Thanks
Amit
0
Konstantina
Telerik team
answered on 22 Jul 2011, 08:05 AM
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!

Tags
DatePicker
Asked by
Amit Patel
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Amit Patel
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or