I'm using the Kendo UI TimePicker control where the min and max times can be set to the next or previous day.
When selecting a time that exists the next (or previous) day the value returned is a full DateTime but is always set to the current date.
For example, if the current date time is "Jun 25, 2015 10:00 PM" and you scroll down and select "Jun 26, 2015 02:00 AM" the return value will be "Thu Jun 25 2015 02:00:00 GMT-0400 (Eastern Daylight Time)" but I'm expecting it to be June 26.
How do I make this control return the expected DateTime.
Here are my code segments:
// Init the control
$("#dtpEndDateTime").kendoTimePicker({
format: "MMM dd, yyyy hh:mm tt",
interval: 15,
change: onShiftEndDateTimeChange
});
// Set the values elsewhere
var dtpEndDateTime = $("#dtpEndDateTime").data("kendoTimePicker");
dtpEndDateTime.value(moment(_shift.EndDateTime).toDate());
dtpEndDateTime.min((moment(_shift.StartDateTime).add(15, "minutes")).toDate());
dtpEndDateTime.max((moment(_shift.EndDateTime).add(12, "hours")).toDate());
// get the selected value inside the onShiftEndDateTimeChange event
var datetimepicker = $("#dtpEndDateTime").data("kendoTimePicker");
console.log(datetimepicker.value());
I've got a sample in the Dojo that illustrates the issue I'm running into. I originally ran into this because we are opening the calendar when the control receives focus. At any rate, when the calendar control is open, if you manually punch in a date and hit "Enter", the calendar control closes but the text value is changed to whatever value was selected in the calendar. In the example below, simply put the focus in the text box, hit "1/31/2015" and hit "Enter". The calendar will close, but the text value will be changed to today's date (the default in the calendar). Any thoughts for a workaround?
Hi,
I just discovered that even though I have removed the ImageBrowser-option from the settings it is still possible to upload images via drag and drop. I have investigated the documentation and it seems that there's no way to prevent this via settings or via events.
So is there some way else I can disable this option?
Regards,
Peter
Hello,
I am trying to connect to the shapes using points but not working. Please see the sample below.
http://dojo.telerik.com/@devendra/onudi .
Can you suggest how i can resolve this.
Best Regards,
Devendra
I came to the demo site today to look into charting objects and in Chrome the styling of the demos seems pretty messed up. I have just made sure I have the latest Chrome (Ubuntu) Version 43.0.2357.130 (64-bit). See the attached images. It's fine in Firefox.
The main client area is empty and the content is forced down below. Scrolling the content rolls it up behind the nav bar and main client area.
How can I attach a javascript function to the keypress event of a hierarchy grid (the details grids).
I want to achieve this functionality
http://www.telerik.com/forums/skip-read-only-fields-when-using-keyboard-navigation-on-navigatable-grid-in-batch-edit-mode
in the detail section.
Jason
I'm displaying data in two different formats (grid with details and on a map based on location). I'm trying to make it so when you click on an object on the map then the corresponding row in the grid will get selected. I'm able to get the data of the object to use when clicking on it on the map, but I'm having trouble using it to select the row in the grid.
Here's the grid creation:
$("#grid").kendoGrid({ dataSource: { data: myData }, height: 400, filterable: true, sortable: true, resizable: true, pageable: false, selectable: true, schema: { model: { id: "MyId" } }, columns: [ { field: "MyId", hidden:true }, { field: "Name", title: "Name", filterable: false, width: 100 }, { field: "Foo", title: "Foo", width: 160 }, { field: "Bar", title: "Bar", width: 110 } ] });And here's the shapeClick event for the map:
var el = $("#grid"), grid = el.data("kendoGrid"), row = el.find("tbody>tr[data-id="+e.shape.dataItem.MyId+"]");grid.select(row);
Using alerts I'm able to verify that I've got MyId correctly, and el, grid, and row are all objects, so I would assume it's getting the right things, but it's not selecting the row on the grid like it should be.
Anyone have any ideas?