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

Inheriting RadDatePicker in User Control

3 Answers 39 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Arpita
Top achievements
Rank 1
Arpita asked on 09 Jun 2010, 03:19 PM
We have created a user control which uses RadDatePicker.
The problem faced is:
We are able to set the minimum and maximum date for the date pop-up but for the input box of the date the minimum and maximum value are not working. One can easily type in any date (beyond the minimum and maximum range).
Example:
Minimum date : 1st january 2010
Maximum Date: 31st January 2010.
Click on the date picker pop-up the calender doesn't show any previous or next month/year.
But type any value in the date box like 10/12/2009 or 10/12/2010 it will accept it.

Note: In our page if we directly use RadDatePicker control it works fines.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 11 Jun 2010, 02:08 PM
Hello Arpita,

I tested the described issue on my side, but was not able to replicate it. After adding date out of the set range the client validation shows error message as it should and this is the correct behavior of the DateInput.
Please find attached a sample application which demonstrates the correct behavior of the control.


Best wishes,
Maria Ilieva
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.
0
Arpita
Top achievements
Rank 1
answered on 16 Jun 2010, 08:10 AM
Thanks for the reply.
Actually we have created WebControl class file which contains RadDatePicker and a label.
It has one property "A_MinDate" to set the minimum of raddatepicker inside this WebControl.
When we are setting this minimum date at the time of page loading it works fine. But if we set this settings after any postback then it is not working. This time the popup button is reflecting the settings but the DateInput box is not reflecting the same.

Thanks & regards,
Arpita

 
0
Maria Ilieva
Telerik team
answered on 21 Jun 2010, 08:27 AM
Hello Arpita,

As the provided information is not enough for us to replicate the issue locally, please suggest open a regular support ticket and send us small runnable application which demonstrates the problem. We will test it locally and advise you further.


Greetings,
Maria Ilieva
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
Tags
Ajax
Asked by
Arpita
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Arpita
Top achievements
Rank 1
Share this question
or