Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Grid column editor template #381

Open
rogerfar opened this issue Aug 22, 2014 · 1 comment
Open

Grid column editor template #381

rogerfar opened this issue Aug 22, 2014 · 1 comment

Comments

@rogerfar
Copy link

When I create a kendo grid in regular JS I can specify my columns like this:

columns: [
    { field: "Employee", title: "Employee", editor: self.employeeDropDownEditor }
],

self.employeeDropDownEditor = function (container, options) {
    $('<input required data-bind="value:EmployeeId"/>')
        .appendTo(container)
        .kendoComboBox({
            autoBind: false,
            filter: "contains",
            suggest: true,
            serverFiltering: false,

            dataTextField: "FirstName",
            dataValueField: "UserId",
        });
};

How can I achieve the same thing but in Angular without having to initialize the combobox through jQuery? Would it be possible to assign a template to the editor that compiles?

@RobHarrisAZ
Copy link

I'm dealing with the exact same thing. Using the methods in the examples, I have to add this function that does DOM manipulation in my controller and of course, that breaks the separation that Angular provides.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants