76458

Disable dates conditionally with Asp.net Ajax Calendar Extender

Question:

If you have used <a href="http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx" rel="nofollow">Calendar Extender</a>, i am looking for ways to disable dates based on selection from another calendar selected date. In a project management application there are end and start dates, i am looking for ways to validate these on client. Someways would require postback which i am not willing to perform. There seems to be StartDate and EndDate properties for the calendar on the server, but does not seem to have any client side counterparts. Have you got any ideas how i can perform this.

Answer1:

You can overwrite _cell_onclick javascript event to show an alert if a wrong date is chosen depending on the selected date in the other calendar.

Here is an example: <a href="http://www.karpach.com/ajaxtoolkit-calendar-extender-tweaks.htm" rel="nofollow">Ajaxtoolkit Calendar Extender close button and date restriction</a>

Answer2:

I know it's too late to reply this post but it my help someone

<a href="http://www.advancesharp.com/blog/1002/disable-dates-in-ajax-calendarextender" rel="nofollow">Disable dates in Ajax Calendar Extender with different dates examples</a>

Recommend

  • Create room reservations using Domino data services REST API
  • How to return a PartialView from Core 2 RazorPage ViewModel Handler
  • How to re-render Reactjs component after update in data?
  • Universal Windows Platform App with google calendar
  • one month after start date-joda
  • Apply seq.Date using two dataframe columns [duplicate]
  • Get working days in SQL Server
  • Format MySQL using CONCAT
  • Looping SQL statement insert
  • how to find the index position of the ARRAY Where NSPredicate pick the value. I use filteredArrayUsi
  • Java: List the dates between a start and end date [duplicate]
  • LINQ to NHibernate WHERE EXISTS IN
  • ValidationResult Returned From IValidatableObject.Validate Is Not Localized
  • iOS Validation failed -> Bundle is invalid (Xcode 6.2, iOS 8.2)
  • SharePoint Designer 2010 - Determine if today's date is within x days of a start date column us
  • jQuery - how to validate a date of birth using jQuery Validation plugin?
  • Can you build a truly RESTful service that takes many parameters?
  • Get the last date of each month in a list of dates in Python
  • How to calculate networkdays minus holidays between 2 dates
  • Spring Cloud Microservice Architecture Confusion
  • rspec simple example getting error on request variable in integration test
  • gspread or such: help me get cell coordinates (not value)
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Transactional Create with Validation in ServiceStack Redis Client
  • How to attach a node.js readable stream to a Sendgrid email?
  • Exception “firebase.functions() takes … no argument …” when specifying a region for a Cloud Function
  • Handling un-mapped Rest path
  • Q promise. Difference between .when and .then
  • PHP - How to update data to MySQL when click a radio button
  • C# - Serializing and deserializing static member
  • Spray.io: When (not) to use non-blocking route handling?
  • Sending data from AppleScript to FileMaker records
  • Validaiting emails with Net.Mail MailAddress
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • How to include full .NET prerequisite for Wix Burn installer
  • python regex in pyparsing
  • C# - Getting references of reference
  • Android Google Maps API OnLocationChanged only called once
  • Is it possible to post an object from jquery to bottle.py?
  • How can I use threading to 'tick' a timer to be accessed by other threads?