Hello,
create/update posts an empty model to the controller.
It was working in a very old asp.net mvc project. I setup a new asp.net core project. I spent some hours to fix this, but no luck.
Reading the data source is ok and the data is shown in column 'valuestream'. At the moment for 'Agenda' two values are shown, editable with a mutiselect.
Controller:
public ActionResult ManagerQuestionnaireCreate([DataSourceRequest] DataSourceRequest request, QuestionnaireViewModel rs)
{
....
return Json(new[] { rs }.ToDataSourceResult(request, ModelState));
}
Model:
View:
I need to add charts to a project that doesn't have any. To learn about the Kendo chart control I added sample code to an existing view in the project. My guess is that the problem has to do with the CSS and JavaScript files that the project uses. Projects that I've downloaded that have chart code that works use Bootstrap 3 and Bootstrap 4 while our project uses Bootstrap 5.
This is the code:
<div class="chart-wrapper">
Prior to the most recent version we could use reflection to get the grid name in this method.
We have changed it to pass the grid name, but was wondering if there is a programmatic way of getting the grid name without passing it
public static GridToolBarCommandFactory<T> SuperSearch<T>(this GridToolBarCommandFactory<T> builder, string gridName, string title = "Super Search...") where T : class
I am trying to customize the default presentation of the image of the standard image displayed in the various nodes. I can see that it is defaulting to "full rounded" whereas I would like to use medium rounding.
Can someone point me to how I can accomplish this? I have tried several things but everything tried, so far, is promptly ignored and the default rounded image is displayed.
I like the basic layout except for the rounded images.
Hopefully this makes sense to you folks. Great product, sorry for the nitpicks.
Hello,
We are using older version of Telerik Ui for Asp.net core (2020.2.617), where we are using kenod.window() component. Within this when we inspect close , min and max button they are rendered as <a> tag with role=button and href=#.
When i see the latest version in documentation they are rendered as <button> instead of <a>.
Is that a change recently made? Also , we are asked to change it to button due to accessibility implementation. We understand that we can upgrade our project to latest version , but is there any other way to do so with minimal of code change?
Hi Team,
I am using the Kendo TreeList with inline edit mode.
I have implemented the remove
event to display a confirmation popup when the delete button is clicked. The confirmation box appears correctly, but after clicking "Confirm," the record is not being deleted.
Is there an alternative solution to achieve this functionality?
Thank you.
//// I have provided code for reference
@(Html.Kendo().TreeList<RVNLMIS.Models.DMS.FolderSettingModel>()
.Name("FolderTreeList")
.Toolbar(toolbar => toolbar.Create())
.Columns(columns =>
{
columns.Add().Field(e => e.FolderName).HtmlAttributes(new { style = "text-align:left" })
.HeaderAttributes(new { style = "text-align:left" }).Title("Folder Name").Width(400);
columns.Add().Field(e => e.Level).HeaderAttributes(new { style = "text-align:left"})
.HtmlAttributes(new { style = "text-align:right"}).Title("Level").Width(30);
columns.Add().Title("Action").Width(300).Command(c =>
{
c.CreateChild().Text("Add child");
c.Edit();
c.Destroy();
//c.Custom().Text("<i class='btn btn-xs btn-danger fa fa-trash'></i>")
//.Click("showDeleteConfirmation");
});
})
.Editable(e=>e.Mode("inline"))
.DataSource(dataSource => dataSource
.Create(create => create.Action("Create", "DMSFolderSetting"))
.Read(read => read.Action("FolderSettingDetails", "DMSFolderSetting"))
.Update(update => update.Action("Update", "DMSFolderSetting"))
.Destroy(delete => delete.Action("Destroy", "DMSFolderSetting"))
.Model(m => {
m.Id(f => f.FolderId);
m.ParentId(f => f.ParentFolderId);
m.Expanded(true);
m.Field(f => f.FolderName);
m.Field(f => f.Level);
})
.ServerOperation(false)
)
.Events(e=>e.Save("OnSaveRecord"))
.Events(e=>e.Remove("onDeleteConfirm"))
.Height(700)
)
//// Java script code
function showDeleteConfirmation(e) {
e.preventDefault(); // Stop the default delete behavior
var treeList = $("#FolderTreeList").data("kendoTreeList");
rowToDelete = $(e.row).closest("tr");
var dataItem = treeList.dataItem(rowToDelete);
//console.log(e);
//console.log(dataItem);
// Store the row and update modal info
$("#deleteModal").data("row", rowToDelete); // store row
$("#folderName").text(dataItem.FolderName);
$("#deleteModal").modal("show");
}
function confirmDelete() {
var treeList = $("#FolderTreeList").data("kendoTreeList");
var row = $("#deleteModal").data("row");
if (treeList && row) {
treeList.removeRow(row);
}
$("#deleteModal").modal("hide");
}
/// Confirmation Modal
<div id="deleteModal" class="modal fade" tabindex="-1" role="dialog">