I am trying to create a multifilter from enum data type column using the ItemTemplate. But ItemTemplate Javascript function is not being called and data is not being shown in combobox. Please can you give me a help. Here is the code
Enum Records
public enum EmpTypes { [Display(Name = "Service")] Service = 0, [Display(Name = "Sales")] Sales = 1, [Display(Name = "Purchase")] Purchase = 2, [Display(Name = "Office")] Office = 3 }
Kendo Grid
columns.Bound(c => c.EmpTypes).Title("Type")
.Filterable(filterable => filterable
.Multi(true)
.UI(“”).DataSource(s=>s.Read(r=>r.Action(“GetEmpTypes”,”Report”)))
.ItemTemplate(“typetemplate”));
<script>
function typetemplate(e)
{
alert('Test');
}
</script>
Public ActionResult GetEmpTypes()
{
List<EmpType> emptypes = new List<EmpType>();
emptypes.Add(EmpType.Sales)
emptypes.Add(EmpType.Report)
return Json(emptypes,JsonRequestBehavior.AllowGet);
}
I am looking for a help where I need to recreate the options for column filter values when the data on left hand side filter changes?
I have a drop down list country on left hand side and when ever user select the country the column(region), filter (custom filter, based on column on the grid) all the checkboxes for the custom filter should reflect the region as per the country selected.
I have Kendo Grid with "incell" editable mode and custom buttons for save, delete.
We have kendocombobox as editor and the user changes multiple rows before saving a row.
Is there a way to reset the previously edited row when the user moves to edit another row?
I have a combo inside a column of the grid, i already managed to introduce a default value.
Now i need to block the combo actions, so the user cannot remove the default value.
My grid with combobox:
My code do default value inside combobox:
Hi,
I want to add custom field to combobox Editor in Kendo grid but it's not working can anyone help me? Many thanks!
In the image below I have an IsActive : true column when loading data, but when I edit I don't see it.
Hi,
I have a data display problem, multi-column header error showing foreign key column as shown in attached video.
Can someone help me, many thanks.
The foreign key column property is declared as below:
col.dataTextField = col.dataTextField ?? "text";
col.dataValueField = col.dataValueField ?? "value";
col.dataSource = {
type: "json",
transport: {
read: function (options) {
ufn_ApiGetLookup({
data: col.source,
success: function (d) {
options.success(ufn_GetData(d));
}
});
}
}
}
Hi
How I can make cascade drop downlist inside a grid like in this example :
https://demos.telerik.com/kendo-ui/grid/editing-custom
Per:
https://demos.telerik.com/aspnet-core/grid
can someone provide/post the source for the Editor Templates Names for Country and ClientCategoryEditor?
I'm trying to make an editable grid with a select control in one of the columns (Country), just like the demo... but the source code/markup seems to be incomplete...
I'm looking for the source editor templates behind these:
columns.Bound(p => p.Country.CountryNameLong).Title("Country").EditorTemplateName("Country")
columns.Bound(p => p.Category.CategoryName).EditorTemplateName("ClientCategoryEditor")
fyi these are broken in the edit in teletik repl as well....
maybe if it was a snake it would have bit me...
Thanks
Hello. I am using a custom column editor as shown in your example : https://docs.telerik.com/kendo-ui/knowledge-base/custom-editor-autocomplete. Even in the example that you provided, if I type a value that is not in the list, on focus out the field will display "undefined" and will remain this way even if i try to select another value. Is there a fix for this situation? Thank you in advance :)
I attached a screenshot from your working example.