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

How to disable some days at client side on button click

2 Answers 48 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Krishna
Top achievements
Rank 1
Krishna asked on 29 Sep 2009, 02:12 AM
Hi Team,
I have one requirement where i should disable some of the days on a button click event at client side.
The button is html button and must have javascript function.
on that javascript event i must disable some dates (disable or not selectable) ..
The dates are know dynamically..

Please help it is little urgent requirement

Thanks
-krishna

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 29 Sep 2009, 08:15 AM
Hi Krishna,

The client-side DayRender event is fired for every calendar day cell when the calendar is rendered as a result of client-side navigation. This event can be used to apply final changes to the output (content and visual styles) just before the content is displayed. Checkout the following demo which shows how to utilize the DayRender client event to customize the appearance of the rendered date.
DayRender Event

Also checkout the forum link: Disable DatePicker Calendar Date on Client Side DayRender

I hope this will help you in getting started.
Shinu.





0
Krishna
Top achievements
Rank 1
answered on 30 Sep 2009, 01:10 AM
Hi Shinu,
is there anyway i can change the style of certain date(s) in a datepicker control when i click on a html control.

basically ..
when the user clicks on html control javascript function will be invoked ..
in that funtion
I have an array of dates and i just need to change the style of those dates from the array..
and i am using RadCalendar.Net2.dll

is it possible for datepicker control to change the styles of some dates through javascript?

Thanks
-Krishna
Tags
Calendar
Asked by
Krishna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Krishna
Top achievements
Rank 1
Share this question
or