Hi,
I am trying to use kendo Editor MVC and jQuery in my web application, were i have Kendo UI version 2015.1.318. but i am getting like this ".kendoEditor is not a function" . does kendo version 2015.1.318 supports Editor for MVC/Jquery?
Regards
Hi team,
Is it possible to reference kendo js with "defer" attribute?
<!-- Reference to the Kendo UI JavaScript file -->
<script DEFER src="js/kendo.all.min.js"></script>
Any contraindications?
Thanx
Looking to upgrade from a random jquery plugin to a built-in if one exists. This is rendered as a hidden Radio Button with a bunch of Label elements.
Is there a Kendo UI component for this?
I am successfully using the drag and drop feature in an editable grid. The grid is using batch update, so after a row is moved, I need to somehow notify the user they need to click the save option in my toolbar.
Modifying any cell data automatically flags the cell as dirty, but drag drop does not. Ideally, I would like the red dirty flag to show up in the draggable cell, so not to be confused with a data change to that row.
I know there is a rowReorder event I can leverage, however so far I'm struggling to manually flag the cell as dirty. I've tried getting the item by Uid and setting item.dirty = true, but this isn't adding the visual cue.
Here is my grid definition:$('#grid').kendoGrid({
dataSource: dataSource,
columns: [
{draggable: true, width: '45px' },
{command: ['destroy'], title: 'Action', width: 100 },
{field: 'Field', title: 'Field', width: 125 },
{field: 'Required', title: 'Required', width: 90 },
{field: 'Type', title: 'Type', width: 100 },
{field: 'Length', title: 'Length', width: 100 },
{field: 'Allow_Multiple', title: 'Allow Multiple', width: 125 },
{field: 'Description', title: 'Description' },
{field: 'Example', title: 'Example' },
{field: 'Notes', title: 'Notes' },
],
toolbar: [
'create',
'save',
'cancel',
{
template: '<a id="preNotesButton" class="k-button k-button-md k-button-rectangle k-rounded-md k-button-solid k-button-solid-base"><span class="glyphicon glyphicon-list-alt"></span> Edit notes</a>'
},
{
template: '<a id="exitButton" class="k-button k-button-md k-button-rectangle k-rounded-md k-button-solid k-button-solid-base" style="float: right;"><span class="glyphicon glyphicon-arrow-left"></span> Exit</a>'
}
],
editable: {
'mode': 'incell',
'confirmation': 'Are you sure you want to delete this item?',
'createAt': 'bottom',
},
navigatable: true,
reorderable: {
rows: true
},
rowReorder: function(e) {
// How can I flag the draggable cell as dirty?
uid = e.row[0].dataset.uid;
dataSource = $('#grid').data('kendoGrid').dataSource;
item = dataSource.getByUid(uid);
item.dirty = true;
console.log(item);
}
});
I have a grid that is initiated with a local datasource. I have a schema and a parse that manipulates the data received. I need to replace the datasource but don't want to retype the entire schema over again. How can I do that? I have an example dojo here. In my example, I am adding 100 to the age. Notice that after reloading the new records don't have the 100 added to the age. I need to know how to do this for the entire grid and also for updating a single record in the grid. I tried pushUpdate for a single record and it ignores the parse also.
http://dojo.telerik.com/OxazIqAG
Here is the relevant code:<script>
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" },
{ field: "id" }
],
dataSource: {
data: [
{ id: 1, name: "Jane Doe", age: 30 },
{ id: 2, name: "John Doe", age: 33 }
],
schema: {
parse: function(response) {
var users = [];
for (var i = 0; i < response.length; i++) {
let record = response[i];
var user = {
id: record.id,
name: record.name,
age: record.age + 100
};
users.push(user);
}
return users;
},
model: {
id: "id",
fields: {
id: { type: "number" }
}
}
}
}
});
$("#setData").click(function(){
$("#grid").data("kendoGrid")
.dataSource
.data([{id: 3, name: "new item", age: 20}]);
});
</script>
I am trying to use 'kendo ui for jquery' with asp.net core web api, Can you please let me know where I can find the sample code for the same . I found examples on github for telerik ui for asp.net mvc but couldn't find any examples for kendo ui jquery with asp.net core web api. Thanks.
I have a kendo Dialog with an embedded wizard, populated by ajax. On the first invocation of the dialog with the wizard, everything works fine. Then it gets closed, I empty the wizard div on dialog close. On the second invocation of the dialog, the activate method on the wizard starts getting called multiple times on the 'Next' button click, always at least once with the wrong step, the last one. Is there a way to clear out the event handler for the wizard each time the dialog starts up?
Thanks.
I have tow KendoUI grids with one row and multiple columns.
If we change value of Column1 dropdown in Grid1, it should change value of Column1 Dropdown in Grid2,
Please share your inputs how we can implement this requirement in Jquery.
I have implemented both grids dropdown lists using Column Template.
Please find attachment for grid structures.
I have a Kendo Panel that contains a Tile Layout. I have 2 hard-coded HTML kendo templates that display and 1 that I am using a Kendo Window which loads a view passing in a model. The 2 hard-coded ones are displayed fine, but the Kendo Window one is an empty rectangle (see PanelWithTileLayout.jpg). If I enter a URL of the Kendo Windows content source, it displays fine (see KendoWindowContentWithDirectURL.jpg). The LoadContentFrom URL is being hit on a breakpoint in the controller. I was thinking I have to open the Kendo Window in javascript somewhere, but it is not recognized in the document.ready routine, probably because it is in a child template and hasn't been created yet.
<script id="dues-remit" type="text/x-kendo-template">
@(Html.Kendo().Window()
.Name("DuesRemission")
.Width(310)
.Draggable(false)
.LoadContentFrom("_DuesRemission", "Dashboard", new { TplNum = ViewBag.TempleNumber })
.Events(events => events.Close("close"))
.Visible(true)
.ToClientTemplate()
)
</script>
<script id="members" type="text/x-kendo-template">
<div id="members-border" class="health-border">
<a class='k-button k-button-icon k-flat k-close-button'><span class='k-icon k-i-close'></span></a>
<div class="info-container">
<h3 class="temple-health-title">Membership Change</h3>
<div class="info-holder">
<div class="item-values">Percent change since last year: -0.5%</div>
<div class="item-values">Percentile against all temples: 63</div>
</div>
</div>
</div>
</script>
<script id="unapplied-payments" type="text/x-kendo-template">
<div id="unapplied-payments-border" class="health-border">
<a class='k-button k-button-icon k-flat k-close-button'><span class='k-icon k-i-close'></span></a>
<div class="info-container">
<h3 class="temple-health-title">Unapplied Payments</h3>
<div class="info-holder">
<div class="item-values">Current number of unapplied payments: 5</div>
<div class="item-values">Percentile against all temples: 47</div>
</div>
</div>
</div>
</script>
<div class="demo-section k-content container-fluid">
@(Html.Kendo().TileLayout()
.Name("temple-health")
.Columns(3)
.RowsHeight("150px")
.ColumnsWidth("510px")
.Containers(c => {
c.Add().BodyTemplateId("dues-remit").ColSpan(1).RowSpan(1);
c.Add().BodyTemplateId("members").ColSpan(1).RowSpan(1);
c.Add().BodyTemplateId("unapplied-payments").ColSpan(1).RowSpan(1);
})
.Reorderable(true)
.Resizable(true)
)
</div>
_DuesRemission.cshtml:
<div id="dues-remit-border" class="health-border">
<a class='k-button k-button-icon k-flat k-close-button'><span class='k-icon k-i-close'></span></a>
<div class="info-container">
<h3 class="temple-health-title">Dues Remission</h3>
<div class="info-holder">
<div class="col-lg-6 col-sm-6">Dues Year @Model.CurrentDuesYear</div><div class="item-values col-lg-6 col-sm-6">Percent paid as of today: @Model.PercentPaidCurrentYear</div>
<div class="col-lg-6 col-sm-6">Dues Year @Model.LastDuesYear</div><div class="item-values col-lg-6 col-sm-6">Percent paid last year: @Model.PercentPaidLastYear</div>
</div>
</div>
</div>
There are no errors in the F12 console display.
Some clinical studies can take up to 5 years or more, and I want to be able to show an entire study and its sub-tasks in a Kendo Gantt chart. I want to show periods of time longer than the current maximum of 1 year that is built into Kendo UI for jQuery v2018.3.1017, is that possible?
I'd like to be able to show a maximum of 6 years. Ideally the header would change to be able to see Quarter/Year rather than Month.
I posted a message on StackOverflow too and received a response from Alexsander. However he pointed me to a web page that we already tried. https://stackoverflow.com/questions/71561541/display-more-than-1-year-in-kendo-ui-for-jquery/71568711#71568711
Does anyone have any more info on how we can see 3 or 6 years at a time?
Thanks