kendo-datepicker

Single calendar Date Range Picker

£可爱£侵袭症+ 提交于 2020-01-11 11:15:42
问题 I am looking to build a date range picker that's values only consist of January-December of a single year at a time.It will look something like this: (This is taken from my existing kendo date range picker and poorly photoshopped) I have built one using the kendo date picker but it seems to require two calendars, one for start date and the other for end date. Being that my range can only span months in a single year, I just need one calendar like below where the user can either click and drag

Single calendar Date Range Picker

北城以北 提交于 2020-01-11 11:11:32
问题 I am looking to build a date range picker that's values only consist of January-December of a single year at a time.It will look something like this: (This is taken from my existing kendo date range picker and poorly photoshopped) I have built one using the kendo date picker but it seems to require two calendars, one for start date and the other for end date. Being that my range can only span months in a single year, I just need one calendar like below where the user can either click and drag

Set Today date to kendo datepicker

不想你离开。 提交于 2020-01-09 10:15:10
问题 I want to set today date to Kendo DatePicker on clear button click. I tried following but it is not working. $('#btnClear').click(function () { $("#StartDate").data("kendoDatePicker").value(new Date()); }); Above code don't give any error and don't set today date. It clears kendo DatePicker's textbox value. Note: Kendo DatePicker format is MM/dd/yyyy. 回答1: I tried following and works perfectly for me. $('#btnClear').click(function () { var todayDate = kendo.toString(kendo.parseDate(new Date()

Moment.js - Date comparison: Catching min range

给你一囗甜甜゛ 提交于 2020-01-06 18:13:37
问题 My form has a Kendo DatePicker and a button that runs a JavaScript function prior to doing a form.submit(). I need to be able to compare my date that is entered against a lower limit, and prevent the code from going on (submitting the form) if it is earlier than my set date. I want to return false if the limit hasn't been breached, true if it has. I'll use this example to show what I'm trying to do in the validation code: var lowerBound = new Date('1776', '6','4'); // July 4, 1776 var

MVC Date Time Model Binding

本小妞迷上赌 提交于 2020-01-04 02:46:12
问题 I am using 2 kendo date pickers in my application as such: <div class="span12"> <div class="span2" style="text-align: right"> Start Date: </div> <div class="span2"> @(Html.Kendo().DatePickerFor(m=>m.StartDate)) </div> <div class="span2" style="text-align: right"> End Date: </div> <div class="span2"> @(Html.Kendo().DatePickerFor(m=>m.EndDate)) </div> <div class="span4"> <button class="btn btn-primary" onclick="getGraphData()">Show</button> </div> </div> When the button is clicked, I read the

Kendo datepicker acting weired for different computers on two different timezone

China☆狼群 提交于 2019-12-31 04:55:14
问题 Hi we use a simple kendo datepicker for our web application. $("#DateInput").kendoDatePicker({ format: "dd/MM/yyyy", culture: "en-GB", max: new Date() }); Now when we try to get the datepicker value in Javascript my browser gives me date format dd/MM/yyyy but my colleague's browser gives him MM/dd/yyyy . We have tried to use same culture as you can see in kendo and as well as in our web.config we have put the globalization settings as follows. <system.web> <globalization uiCulture="en-GB"

How Do I Raise the Change Event in the KendoUI DatePicker?

左心房为你撑大大i 提交于 2019-12-12 10:33:16
问题 I'm trying to set the value of my DatePicker using the code below and expecting the "Change" event to be raise but it doesn't. var datePicker = $("#datePicker").data("kendoDatePicker"); var previousDate = new Date(datePicker.value()); previousDate.setDate(previousDate.getDate() - 1); $("#displayDate").text(kendo.toString(new Date(previousDate), 'D')); datePicker.value(previousDate); Change the date value through the user interface does raise the "Change" event as expected however. 回答1: Please

How to change view date dynamically (which is filter event by date time)

我与影子孤独终老i 提交于 2019-12-06 15:18:51
问题 I Want to filter event by date but date is pass by normal input type="text" not kendo default datepicker.And display passing date in kendo schduler header But cant not change view date.This is my code......... $scope.searchEventByDate = function (item) { var scheduler = $("#scheduler").data("kendoScheduler"); scheduler.view().startDate(item.StartDate); scheduler.view().endDate(item.EndDate); scheduler.view(("day")); $scope.scheduler.dataSource.read(); }; This is my filter param parameterMap:

How to change view date dynamically (which is filter event by date time)

那年仲夏 提交于 2019-12-04 23:14:28
I Want to filter event by date but date is pass by normal input type="text" not kendo default datepicker.And display passing date in kendo schduler header But cant not change view date.This is my code......... $scope.searchEventByDate = function (item) { var scheduler = $("#scheduler").data("kendoScheduler"); scheduler.view().startDate(item.StartDate); scheduler.view().endDate(item.EndDate); scheduler.view(("day")); $scope.scheduler.dataSource.read(); }; This is my filter param parameterMap: function (options, operation) { var popupheight = $(window).height() - 180 + 'px'; $scope

Kendo datepicker acting weired for different computers on two different timezone

牧云@^-^@ 提交于 2019-12-02 05:46:19
Hi we use a simple kendo datepicker for our web application. $("#DateInput").kendoDatePicker({ format: "dd/MM/yyyy", culture: "en-GB", max: new Date() }); Now when we try to get the datepicker value in Javascript my browser gives me date format dd/MM/yyyy but my colleague's browser gives him MM/dd/yyyy . We have tried to use same culture as you can see in kendo and as well as in our web.config we have put the globalization settings as follows. <system.web> <globalization uiCulture="en-GB" culture="en-GB" /> </system.web> My computer's date format and settings are as follows; Region & Language