Telerik Forums
Kendo UI for jQuery Forum
1 answer
27 views
 

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>
Action Method in MVC controller

Public ActionResult GetEmpTypes()
{
 List<EmpType> emptypes = new List<EmpType>();
emptypes.Add(EmpType.Sales)
emptypes.Add(EmpType.Report)
return Json(emptypes,JsonRequestBehavior.AllowGet);
}


 

Mihaela
Telerik team
 answered on 13 Mar 2024
0 answers
48 views

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.

Vaibhav
Top achievements
Rank 1
Iron
 asked on 09 Apr 2023
0 answers
43 views

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?

 

 

 

 

 

 

Shrenivas
Top achievements
Rank 1
 updated question on 03 Mar 2023
1 answer
171 views

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:

Nikolay
Telerik team
 updated answer on 03 Feb 2023
0 answers
57 views

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.

Mr Chuc
Top achievements
Rank 2
Iron
Iron
 asked on 18 Nov 2022
1 answer
87 views

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));
                        }
                    });
                }
            }
        }

Georgi Denchev
Telerik team
 answered on 31 Oct 2022
1 answer
202 views

Hi

 

How I can make cascade drop downlist inside a grid like in this example :

https://demos.telerik.com/kendo-ui/grid/editing-custom

Neli
Telerik team
 answered on 24 Jan 2022
1 answer
112 views

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.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

Aleksandar
Telerik team
 answered on 16 Dec 2021
1 answer
235 views

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.

Martin
Telerik team
 answered on 11 May 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?