Outils pour utilisateurs

Outils du site


web:kendo

Ceci est une ancienne révision du document !


Kendo UI

Kendo Dropdown List

Méthode 1

Dans le fichier HTML:

<select name="" id="" kendo-drop-down-list
    k-option-label="'Select a computer...'"
    k-data-text-field="'name'"
    k-data-value-field="'id'"
    k-data-source="vm.computers">
</select>

Dans le fichier JS:

vm.computers = [
    { id: 1, name: "MacBook Pro" },
    { id: 2, name: "MacBook Air" },
    { id: 3, name: "Mac Pro" }
];

Méthode 2

Angular acces

angular.element("[kendo-grid]").data("kendoGrid")._data.filter(function(item) {return item.nom === "afsdf"; })
web/kendo.1439048213.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)