I have build my parent child table grid by referring above link. Still i need to have check box for each row just like checkbox tree.
For that i need to bind my child row id in template, I tried as below.
Issue is:
At runtime, it is trowing error from child table by saying that it can not bind "OrderId" (No order id is not found).
Further i found out, This template only able to bind the date from parent data source only.
Hi, I'm using UI ASP.Net core to display some data on a grid. On one of the grid column I need a filter with multi-checkbox and search. I'm doing this by the following code on the view:
columns.Bound(c => c.Affects).Title("Components").ClientTemplate("#=showComponents(data)#").Groupable(false).Width(180).Hidden(true)
.Filterable(fb => fb.Multi(true).CheckAll(true).Search(true).ItemTemplate("filterComponentsTemplate")
.DataSource(ds => ds.Read(r => r.Action("GetComponentsNamesForGridFilter", "Changes"))));
My problem is than the list of components is very very big and I get performance issue on the initial load of the filter menu. I would like to limit the number of components to be displayed to 100 and refresh the list every time a key is pressed on the Search textbox.
How to do that? I cannot find a way to handle events from the filter search textbox.
Hello,
Im using angular 16 and .net core 7 version. When i send request to back-end, i can handle. But i have a problem.
I want to display a boolean value in an ASP.NET Core Kendo grid column. However, I need it to display a checkbox in the column because I don't want to show the users the raw data. So, I put in a custom client template because it's not an option to have booleans display a checkbox despite that seeming like an option that should be available by default. However, this grid is supposed to be editable inline using the default CRUD operations and you have to click on the cells to bring up the editor.
The default editor for a boolean column is a checkbox. So, the users click on a checkbox to bring up a different checkbox and it looks like it just didn't work. If I make the initial checkbox greyed out, it looks like they can't edit it. So, no matter what I do, I can't make a column a checkbox and use the default editor without a bunch of ugly design issues which is ridiculous.
Am I just missing something? Is there a better way than resorting to doing scripting with Javascript and setting the column to uneditable?
4032:46 Uncaught TypeError: jQuery(...).kendoCheckBox is not a function
at HTMLDocument.<anonymous> (4032:46:169)
at i (jquery.min.js:2:27466)
at Object.fireWith [as resolveWith] (jquery.min.js:2:28230)
at Function.ready (jquery.min.js:2:30023)
at HTMLDocument.K (jquery.min.js:2:30385)
This is my code:
@model DMDPace.DataAccess.DomainModels.Project;
<div style="margin: 20px">
<h3>Project: @Model.ProjectName</h3>
<br/>
<div style="display: flex">
<h3 style="margin-right: 15px">Manager: </h3>
@(Html.Kendo().DropDownListFor(x => x.ProjectManagerId)
.DataTextField("DisplayName")
.DataValueField("Id")
.Events(e =>
{
e.Select("managerChange");
})
.DataSource(source =>
{
source.Read(read =>
{
read.Action("FilterEmployees", "Home");
});
})
.HtmlAttributes(new { style = "width: 15%; min-width: 280px;" }))
</div>
<div style="display: flex; align-items: center;">
<h3 style="margin-right: 15px">Is Active: </h3>
@(Html.Kendo().CheckBoxFor(x => x.IsActive))
</div>
</div>
DropDownListFor renders correctly, but checkBoxFor doesn't.
Project:
public class Project : Entity
{
public string ProjectName { get; set; }
public bool IsActive { get; set; }
public int? ProjectManagerId { get; set; }
public virtual User ProjectManager { get; set; }
}
How do you change the backcolor of the box where the checkmark is made? This is not the control backcolor, but the color inside the checkbox.
In this link it is called RadCheckMark checkPrimitive (1.1) https://docs.telerik.com/devtools/winforms/controls/buttons/checkbox/structure
I can't find any property that controls that checkPrimitive back color.
I upgrade from 'telerik.ui.for.aspnet.core.2019.1.220.commercial' to 'telerik.ui.for.aspnet.core.2023.1.117.commercial' and now the check box doesn't display check even though the data from the database is true
@(Html.Kendo().CheckBox() .Name("MyCheckbox").Label("Yes")
I even tried @(Html.Kendo().CheckBox() .Name("MyCheckbox").Checked(true).Label("Yes"), it still won't show the checkbox as checked.
Regards
I have a checkbox that is checked on a form but it should send its value on the post but should not be editable
The editor template looks like this
@(Html.Kendo().CheckBoxFor(m => m) .Label(label) .Enable(enable) .HtmlAttributes(ViewData) .Deferred(deferred) )
The checkbox does not have a readonly functionality like the textbox
Can this be achieved? I tried adding a hidden field like @Html.HiddenFor(m => m) but that generates another input with the same id
When using the Boolean editor template with the grid HtmlHelper a label is created in the cell next to the checkbox. This was not always the case. Older versions of kendo excluded the label and only rendered the checkbox. Is there a way to turn off the label and only render the checkbox?
vs