Chris Marisic
Top achievements
Rank 1
Chris Marisic
asked on 11 Feb 2010, 05:33 PM
How can I configure my RadDatePicker to only allow me to pick the first of each month?
5 Answers, 1 is accepted
0
Accepted
Shinu
Top achievements
Rank 2
answered on 12 Feb 2010, 06:41 AM
Hello Chris Marisic,
I hope you want to disable some days in the RadDatePicker. You can refer to the following article for more information about how to disable calendar days in the calendar component of RadDatePicker.
Disabling calendar days
-Shinu.
I hope you want to disable some days in the RadDatePicker. You can refer to the following article for more information about how to disable calendar days in the calendar component of RadDatePicker.
Disabling calendar days
-Shinu.
0
Chris Marisic
Top achievements
Rank 1
answered on 12 Feb 2010, 05:43 PM
Shinu,
I appreciate the response but is that really the only way to solve this to implement custom javascript that rewrites the DOM? Is there really no better programmatic way that I can set the calendar to correctly limit my days?
Update
I do see the equivalent is implemented in the code file, still that's alot of work when you should just be able to do like Calendar.AcceptedDays = new RadDateArray {}.... but atleast that's usable to me.
I appreciate the response but is that really the only way to solve this to implement custom javascript that rewrites the DOM? Is there really no better programmatic way that I can set the calendar to correctly limit my days?
Update
I do see the equivalent is implemented in the code file, still that's alot of work when you should just be able to do like Calendar.AcceptedDays = new RadDateArray {}.... but atleast that's usable to me.
0
Chris Marisic
Top achievements
Rank 1
answered on 18 Feb 2010, 07:56 PM
Shinu,
After using the solution you posted it does indeed work on the first month when you open up the calendar however after subsequent changes to other months sometimes the dates will become selectable for any date.
After using the solution you posted it does indeed work on the first month when you open up the calendar however after subsequent changes to other months sometimes the dates will become selectable for any date.
0
Hi Chris,
Could you please confirm that you handled the client-side OnDayRender event of the picker Calendar as shown in the code library sample?
Additionally, if you want to disable the desired days for other months server-side try setting the picker AutoPostBack property to true and see if it makes any difference.
Greetings,
Iana
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.
Could you please confirm that you handled the client-side OnDayRender event of the picker Calendar as shown in the code library sample?
Additionally, if you want to disable the desired days for other months server-side try setting the picker AutoPostBack property to true and see if it makes any difference.
Greetings,
Iana
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
Chris Marisic
Top achievements
Rank 1
answered on 23 Feb 2010, 05:47 PM
I was not using the client side event also I mistakenly thought the article presented both ways to handle it server side or client side not that it required both.