Hi
I am trying to set break time like lunch,Tea time to restrict appointment for particular time. All works fine when I Set Major Tick to 60, but its not working properly when Setting Major ticks to 30.
This setting not apply between 3:30PM to 3:45PM when set MajorTick:30 (PFA the same)My Code for this is as follows:-
function onDataBound(e) {
var scheduler = e.sender;
var slots = $('.k-scheduler-content td[role=gridcell]');
for (var i = 0; i < slots.length; i += 1) {
var currentSlot = $(slots[i]);
var slotData = scheduler.slotByElement(currentSlot);
var items = '';
$.each(BreakTimeList, function (i, item) {
//Trying to set it 3:00PM to 3:30PM and 3:30PM to 4:00 PM
//But this setting not apply between 3:30PM to 3:45PM when MajorTick set to 30
if ((slotData.startDate.getHours() >= 3 && slotData.startDate.getMinutes() >= 00)
&& (slotData.endDate.getHours() <= 3 && slotData.endDate.getMinutes() <= 30)) {
currentSlot.html('<i class="fa fa-stopwatch"></i>');
}
});
}
}Regards
Pankaj
I am trying to get the bootstrap 5 client side validation (Red/Green borders) to work with the Datepicker.
Currently using Jquery validation rather than Kendo because I am only using the Kendo Datepicker control, the rest are standard inputs.
<partial name="_ValidationScriptsPartial" />Whilst the validation fires correctly the .is-invalid pseudo class is added to the input only so the border doesn't render:
<div id="chat"></div>
<script>
$(document).ready(function () {
var chat = $("#chat").kendoChat({
post: onPost
}).data("kendoChat");
chat.renderMessage({
type: "text",
text: "Hello, how can I assist you today?",
timestamp: new Date()
}, {
name: "Chatbot"
});
function onPost(args) {
var chatargs = args.sender;
var chat = $("#chat").data("kendoChat");
// Render the typing indicator.
chat.renderUserTypingIndicator({ name: "Chatbot" });
}
});
</script>
I need to add a button inside a diagram element as example inside a shape or group elements, if it is not possible, add a pop up menu or something similar...
Do you have any advice?
Wondering if someone can point out how to use CSP compatible templates with KendoNotifications.
Here is kendo's demo https://demos.telerik.com/kendo-ui/notification/templates.
I've added a content-policy without 'unsafe-eval' included. https://dojo.telerik.com/urImEZAk
Is there a way to convert these templates to be CSP compatible while keeping them in the script statement instead of having the html inside the kendoNotification initialize? The kendo documentation doesn't have many examples. https://docs.telerik.com/kendo-ui/framework/templates/get-started-csp-templates
This works, but would be nice to be able to separate the templates. https://dojo.telerik.com/urImEZAk/4
Thanks.
I see there are some issues with TreeList search functionality, even on your website:
Filter Row in jQuery TreeList Widget Demo | Kendo UI for jQuery (telerik.com)
if you go on the Last Name column and switch it to "contains" and type rr, which should match a child with the value Carr, the dropdown shows no suggestions, if you actually filter it, it will filter (considering it's local filtering)
Same applies for "ends with" i tried both rr - should match Carr and ey - should match Sweeney
Am I missing something here ?
If not, is there any way to disable the suggestion dropdown ?
Thanks,
Viorel
¿Alguien ha trabajado con esto? Tengo configurado el web service y me esta retornando el json que debe leerme y mostrarme en el grid, pero no consigo realizar que se visualicen los datos
<body>
<div id="grid"></div>
<script>
$(document).ready(function () {
const dataSource = new kendo.data.DataSource({
dataSource: {
type: "odata",
transport: {
read: "http://localhost:53072/Service.svc/ObtenerDatos"
},
pageSize: 20
},
schema: {
model: {
fields: {
Id: { type: "number" },
Nombre: { type: "string" },
Precio: { type: "number" }
}
}
},
pageSize: 10
});
$("#grid").kendoGrid({
dataSource: dataSource,
height: 400,
sortable: true,
pageable: true,
columns: [
{ field: "Id", title: "ID" },
{ field: "Nombre", title: "Nombre" },
{ field: "Precio", title: "Precio" }
],
});
});
</script>
</body>