Hi All,
We're using telerik kendo treelist for the application. we need functionality like if we click on Copy data button then it will clone the selected row along with data. We've tried to find copy functionality but we're not able to do it. so we have add custom button ("Copy Data").
Please let us know if there is any other way to achieve this functionality.
adding button "Copy Data" in toolbar:
.Toolbar(tb =>
{
tb.Custom().Name("Copy").Text("Copy Data");
})
"Copy Data" button click event:
$('.k-button-text').click(function () {
alert('clicked');
debugger
var treeList = $("#TeamTreeList").data("kendoTreeList");
var row = treeList.select();
if (row.length > 0) {
var data = treeList.dataItem(row);
console.log(data.RoleName);
}
});
I have an ASP.NET MVC project, using Kendo MVC 2023 R1, and I am using a strict CSP policy. However, the following code is not working
<add name="Content-Security-Policy" value="script-src 'self'
Index.Cshml
<script id="editor-template" type="text/x-kendo-template">
@Html.Kendo().TextBox().Name("FieldExcel").Enable(false).ToClientTemplate()
</script>
in JS
$(document).ready(() => {
$(".list-item-icon").on("click", e => {
$("#edit-dialog").kendoWindow({
height: 320,
width: 415,
title: 'Editar',
visible: false
});
var thtml = $("#editor-template").html();
var htmlEncode = kendo.htmlEncode;
var templateString = () => thtml;
var template = kendo.template(templateString);
var data = { firstName: "Todd", age: 16 };
var result = template(data);
//var template = kendo.template($("#editor-template").html());
$("#edit-dialog").data("kendoWindow").content(template({})).open().center();
The result is a simple input text instead of a disabled Kendo control.
I have been trying many ways, and I can't find a solutionI have a model class given below in MVC. I am trying to set MinDate and MaxDate for the DatePicker
public class YourModel { public DateTime Deadline { get; set; } public DateTime MinDate { get; set; } public DateTime MaxDate { get; set; } }
@(Html.Kendo().DatePickerFor(x => x.Deadline) .Name("datepicker") // Set the name attribute .Format("MM/dd/yyyy") .Min(DateTime.Today) // Set the minimum date .Max(DateTime.Today.AddMonths(3)) // Set the maximum date (in this example, 3 months from today) .HtmlAttributes(new { id = "datepicker" }) // Set the ID attribute )
Hello,
I have this Kendo DropDownTree control:
<kendo-dropdowntree name="ddtNamespaces" datavaluefield="Value" filter="FilterType.Contains" datatextfield="Text" style="width: 100%;"
check-all="true"
on-change="onNamespaceChange"
on-close="onNamespaceClose"
on->
<hierarchical-datasource>
<transport>
<read url="@Url.Action("GetNamespaceListFromATAsync", "AI")" />
</transport>
<schema type="json">
<hierarchical-model id="Id"></hierarchical-model>
</schema>
</hierarchical-datasource>
<checkboxes enabled="true" />
</kendo-dropdowntree>
I should send an ajax call after control change. When the user normally select a node it's working fine, but when the user clicks on 'All Items' node then the change event will be fired the combo-items-count times. So if I have 100 items in the combo, after click on 'All Items' the change event will be fired 100 times. This is not good for me, I would like send only one ajax call when 'All Items' item is selected.
I try a workaround to use the close event, and send the ajax call after closing the popup, but the close event is firing before all change event is finished so this not works.
Do you have any other idea to solve this? Thank you!
Hi, I have this list of thousands of employees from our Database and will be displayed in a Grid via ViewModel. Im using Custom Binding with paging to fetch only specific number of records per page to reduce the loading time of the grid thats why the ServerOperation = true.
My problem is that, how can I customize or recreate the request filters? Since FullName and Address does not exists in the Employees table. I'm getting error whenever i use search.
public class Employee
{
public string EmployeeID { get; set; }
public string LastName { get; set; }
public string FirstName { get; set; }
public string Street { get; set; }
public string City { get; set; }
public string Province { get; set; }
public string TelephoneNo { get; set; }
public string FullName
{
get
{
return String.Format("{0}, {1}", LastName, FirstName ?? "");
}
}
public string Address
{
get
{
return String.Format("{0} {1} {2}", Street, City, Province);
}
}
}
@(Html.Kendo().Grid<Employee>()
.Name("gridEmployees")
.ToolBar(toolbar =>
{
toolbar.Search();
})
.Columns(column =>
{
column.Bound(c => c.EmployeeID);
column.Bound(c => c.FullName);
column.Bound(c => c.Address);
column.Bound(c => c.TelephoneNo);
})
.Filterable()
.AutoBind(false)
.DataSource(ds =>
{
ds.Ajax()
.ServerOperation(true)
.PageSize(10)
.Model(m => m.Id(c => c.EmployeeID))
.Read(r => r.Action("Read", "Employees"));
})
)
Hi!
I have this large data from a Table with related tables and I'm currently using Custom Binding to apply paging, sorting and more importantly filtering to load smaller data sets.
And my problem is on the below link, no paging example was documented. Can you please help me with this?
ASP.NET MVC Data Grid Component Custom Binding - Telerik UI for ASP.NET MVC
I have this grid with Edit and Destroy column command buttons. As I click the Delete/Destroy button it instantly calls the Destroy action without waiting for the delete confirmation. How can I solve this?
@(Html.Kendo().Grid<Models.ViewModel>()
Hi, I would like to know if there is a way to load a PDF stored as VARBINARY(MAX) in a SQL Server Filestream field.
Thank you in advance.
Hello,
for a new project we're considering ASP.NET MVC, or React (Kendo React)
We like to create a scheduler with multiple users next to each other, per day.
In attachment is an drawing of the expected result.
Is this feasable with Telerik Scheduler, with drag and drop availabilities to move appointments between users?
Thanks,
Jeroen
Hello,
I have been having issues with Visual Studio 2022 (17.7 and 17.8) crashing when running a 'Find and Replace' or when trying to merge a file using GIT. After submitting the issue to the Visual Studio support team, we discovered that either the Telerik MVC or Core extension is the cause.
Is anyone else experiencing this issue? If so, is it being fixed in the next release?
Thanks