The modal isn't very large, so the calendar popup shows outside the modal.
When selecting a day or month, the date picker is updated and the modal remains open.
When selecting a year, the modal closes.
As though the mouse click gets passed to the page.
Kendo: 2024.1.319
Hi,
I am attempting to update our current version of Kenduo UI for Jquery from 2023.1.117 to 2024.4.1112.
I have downloaded the commercial release zip and have updated the references to the js and css files (as I have done with previous upgrades), however I am experiencing lots of styling issues for font sizes and layout across inputs ans widgets.
Firstly, the text size is much smaller for inputs and widgets.
The display of widgets on different browsers is inconsistent (for example the calendar widget is being cut off on FireFox, but is spanning the whole screen on Chrome - screenshots attached).
Any ideas what could be causing this?
Hi,
I am trying to use the Kendo UI kendoDatePicker but I am not seeing the button that opens up the calendar? Must be missing something? Here is what I am using:
<link rel="stylesheet" href="lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="Kendo/2023.3.1010/styles/bootstrap-3.css" />
<link rel="stylesheet" href="Kendo/2023.3.1010/styles/bootstrap-main.css" />
<link rel="stylesheet" href="FontAwesome/font-awesome-4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="styles/jquery_1.12.0-rc2/jquery-ui.min.css" />
<!-- JAVASCRIPT -->
<script type="text/javascript" src="jQuery/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="Kendo/2023.3.1010/js/jszip.min.js"></script>
<script type="text/javascript" src="Kendo/2023.3.1010/js/kendo.all.min.js"></script>
<script type="text/javascript" src="Kendo/2023.3.1010/js/kendo.timezones.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui.min.js"></script>
Here is the code in my JavaScript file:
$("#startDate").kendoDatePicker({
value: _view.get("startDate"),
change: function () {
var value = this.value();
var submitVal = kendo.toString(value, "yyyy-MM-dd");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("START DATE: " + value + " AFTER kendo.toString: " + submitVal); //value is the selected date in the datepicker
}
});
I am just getting the field with the date inside of it now, no calendar selection button:
Here is a screen shot of my HTML code:
Thanks!
George
I am running into an issue with allowing copy/paste of dates into the filter and cell input fields. Currently, the date fields have validation to support MM/dd/yyyy, and users of the app may be trying to copy dates in that are MM/dd/yy. I would expect Kendo to auto format the date to MM/dd/yyyy after the paste happens, or at least allow support for that, but it doesn't seem to happen.
In the cell, when putting in MM/dd/yy, a validation message appears saying the date is invalid, and there doesn't appear to be a way to override that. In the filter, when putting in MM/dd/yy and submitting the filter, it doesn't stick and completely ignores the date put in.
Is there any way with the latest version of Kendo (I am on 16) to allow for different date formats in these fields, or is there the possibility that this is something coming in the future?
I want some of my date time pickers to have a width of 140px.
https://dojo.telerik.com/@mortenma71/eSAhOyaN/9
It works when I set the width using inline style:
<input id="datepicker" value="10/10/2011" style="width:140px;" />
It doesn't work when I set the width using a CSS class.
Without !important the CSS class seem to have no effect:
<style>.width-140 { width: 140px; }</style>
<input id="datepicker2" value="10/10/2011" class="width-140" />
With !important the CSS class effects the width, however the svg-picker-icon doesn't show:
<style>.width-140-important { width: 140px !important; }</style>
<input id="datepicker3" value="10/10/2011" class="width-140-important" />
I only observed the problem now; I'm sure it worked in an earlier kendo/CSS version.
How can I set the width using a CSS class and retain the svg-picker icon?
/Morten
I am trying to fix an issue on an old react application with jquery dependencies and I am not familiar with the approach used here. We are using the following dependencies(some important ones mentioned). Node version is 14.x
"dependencies": { "@progress/kendo-ui": "^2021.3.1207", "@types/node": "^12.20.15", "@types/react": "^17.0.11", "moment": "^2.29.4", "react": "^17.0.2", . . . } "devDependencies": { "@types/jquery": "^3.5.5", . . . }
Right now we are using the below timepicker and this passes in a datetime value on save, in this format 2024-03-14T09:00:00.000Z. But I want to change this to pass in value as a time in this format HH:mm:ss .
<input
id={this.id}
name={this.props.validationName}
data-role="timepicker"
data-bind={`value: ${ValueCodes.Start}`}
data-format="h:mm tt"
required={true}
disabled={true}
/>
I understand that the ValueCodes.Start mentioned above is linked with the type of the input filed. I did find the following set of codes that determine the type of that field in the corresponding datasource builder file.
export class ValueCodes { public static readonly Start = 'sTRT_TIME'; . . . } protected getDataSourceOptions() { const fields: { [key: string]: { type: string } } = {}; switch (this.categoryCode) { case 'INIT': fields[ValueCodes.Start] = { type: 'date' }; . . . break; . . . default: break; } return { fields: fields, transportOptions: { baseUrl: `${X.getApiUrl()}value/${this.categoryCode}` } }; } }
On changing the 'type' from 'date' to 'time' here, fields[ValueCodes.Start] = { type: 'date' }; I encountered some errors. I was only able to save the value in my desired format, if I disable validation. Aprart from that the timepicker now will not load the datetime or time value fetched from the backend because of the 'type' change from 'date' to 'time'.
Is there a specific way in kendo that I can try to overcome this?
This is a follow-up to my original question:
I have a Kendo Date Picker for AngualrJS and I would like to color the individual day cells for a given day within the month.
https://www.telerik.com/forums/angualrjs-kendo-date-picker-how-to-color-day-cells
The follow-up question is:
I see that you can tie a colour background to a particular day value within a month, but how would you do that to a specific date (i.e. Make only the 10th of January red, but not the 10th of February, for example)?