How to disable some days at client side on button click

3 posts, 0 answers
  1. Krishna
    Krishna avatar
    89 posts
    Member since:
    Jul 2008

    Posted 28 Sep 2009 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Sep 2009 Link to this post

    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.





  3. Krishna
    Krishna avatar
    89 posts
    Member since:
    Jul 2008

    Posted 29 Sep 2009 Link to this post

    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
Back to Top