R
Radoslav Kirilov
Guest
Hi Loius, It is strange that the performance is different because internally the angular directive for components is a wrapper of the jquery widget and initialization goes via the same code base. If you prefer to use angular approach you need to append template with combo box setup where you can use k-options which points to the json object with settings (like the object passed to jquery constructor initialization). The tricky part here is that the template will be compiled against the internal grid scope. So in your case you need to extend this scope. For example: editor: (container, options) => { const el = angular.element(template); el.appendTo(container); // Get grid scope because template is compiled against it const gridScopeModel = gridWidgetInstance.$angular_scope.vm; angular.extend(gridScopeModel, yourOptions); } Please note that in v 2.1 we use the same approach (except that we have wrapper directive over the kendo directive) and you can override the _$buildSemanticEditor internal function and change the template for specific column. However, I do not think that in this way the performance will be increased, since as I said the code will go via the same logic. You can increase the performance by decreasing item numbers in the combo box with a applied initial filter for example. Best, Rado
Continue reading...
Continue reading...