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

Telerik extensions for mvc datepicker

0 Answers 56 Views
Forum suggestions
This is a migrated thread and some comments may be shown as answers.
Ziying Wu
Top achievements
Rank 1
Ziying Wu asked on 23 Oct 2014, 07:51 PM
We use telerik extensions for mvc datepickerfor. we add datepicker dynamically. our issue is on first day every month, we can't put same date on all other datepickers(dynamically created) except the first datepicker. for exampl, if today is 10/1, we can put 10/1 in the first datepicker but we can't put 10/1 into any other datepicker---it doesn't show anything but empty textbox. if today is not the first day of the month then it works. I also noticed another weird thing. if I have only on datepicker, if i pick a date, it enters date in textbox and closed the datepicker. if i open the calender again the picked date is still highlighted and if i pick the same day again, the calendar doesn't close. I tried using jquery 1.6.4.min.js that doesn't help. below is the code we are using. Please help.
    @(Html.Telerik().DatePickerFor(m => m.TrackerDate)
    .InputHtmlAttributes(new { @class = "dtTracker" })
    .Max(DateTime.Today)
    .Value(Model.TrackerDate.ToShortDateString())
    .ClientEvents(events => events
    .OnOpen("onOpen")
    .OnChange("onDatechange")
    )                             
    )

No answers yet. Maybe you can help?

Tags
Forum suggestions
Asked by
Ziying Wu
Top achievements
Rank 1
Share this question
or