Change date when month is changed using month navigator in kendo UI date picker - kendo-ui

I am using kendo ui date picker,
I have a requirement that suppose currently 26 june 2014 is selected, when change the month using month naivgator to july, it should automatically select the 26 date in july month

I don't think it is a good to do it (based on user experience point of view).
Example: I already choose 26 June 2014, then I change the month by pressing the arrow to next month.
I may just want to do it because I want to browse or check what is next month, without having intention to select the date from next month.
And what I see currently from kendo calendar, kendo already automatically mark the selected date (26) with the box, which is good from user experience perspective
So the answer is : it is not recommended to do it, unless you have strong reason to do it.
However, you still can probably do it by using navigate event handler
function onNavigate() {
/*do something*/
}
$("#calendar").kendoCalendar({
navigate: onNavigate
});

Related

How can I apply Data validation and conditional formatting on the drop down list?

I want to add data validation for a list of dates (Jan 1st 2023 to December 31st 2023) to a column. When the user click on the drop down. I want them to see the Current day date highlighted. How can i do this?
I have added the necessary data validation rule to the column. Clicking on the date column, I want it to do something like what I have in the picture below.
That blue color is not an highlight. It's my cursor

Show predefined range options and calendar at the same time (daterangepicker.js)

Using the JS daterangepicker library I would like to show a list of predefined ranges AND a calendar picker at the same time. Currently, the intended behaviour is to only show the calendar when the "Custom range" option is selected, as stated on this related ticket on their repo. However, I find 'hard' to select some random single day in the past like this.
For example, imagine I have the following predefined ranges: "Today", "Yesterday", "This week" and "Custom range". In case I let my users pick 4 days in the past, they would need to:
Open the widget
Select "Custom range"
Select four days in the past as the starting range
Select four days in the past again as the ending range
These are 4 clicks for just picking a single date while giving the chance of predefined ranges! Why don't they show a simple calendar picker before clicking on "Custom range" to let users select a single date with just 1 click? Any ideas?
I have same functionality in my app, where a user can select a predefined range (e.g last 7 days, last month, last 3 months, last 6 months etc). What I have done is added a drop down with these options and whenever user clicks "Custom range" it opens date range picker.
Now whether we can display these in date range picker, some may argue that these ranges may vary a lot and setting these & populating in drop down via config seems out of scope for date range picker. But you may customize the lib to implement if you want.

How to prevent user from changing date control which is linked to a textbox in VB6

txtmonth = '01/2011' (This is a textbox control)
I have a Date Control which should automatically display January 2011. The end user should not able to select month & year from the date control, only the day.
User should select only the date from that month. How to do this?
You can limit the data range they can select by setting the MinDate and MaxDate properties.
This applies to both the DTPicker and the MonthCal controls.

Provide validations while using UIPicker as UIDatePicker

Hi,
I am using a UIPickerView to accept payment card expiry date. As the date does not have date field, I could not use UIDatePicker. Now, I have got a nice picker which accepts months and year, which I stored in an array. So in the picker month section, It starts from Jan, Feb....Dec. But I don't like that. For example, the user should be able only to select Oct, Nov & Dec for the year 2011. The months Jan...Sep should be disabled. They should again get enabled for year 2012. How to do that ??
Thanks

MVC 3: Adding a time to an Event Start Date

In my ASP.NET MVC 3 application I have a section to add an event which has a start date and an end date. I am using the jQuery DatePicker for these two input boxes which works fine.
My question is how can I put a time next to these dates? So that in the database the start date will read (for exampls) "28/06/2011 11:24AM". My intitial thought was to put a text box to the side of the date input box in which the user could enter the time, and then the time could be added to the end of the date field. Almost like StartDate = StartDate + Time
Any help would be greatly appreciated
You may find the following extension to the jQuery UI Datepicker useful. And yet another one. And another. And one more.

Resources