Hi,
Is it possible to pass another parameter with event to methods?
my code is as below:
<
kendo-grid-column
field
=
"UnloadingID"
title
=
"Unloading"
:template
=
"getLayerName(shapes,event)"
></
kendo-grid-column
>
and method is: (shapes is in my data)
getLayerName: function (shapes,e) {
console.log(e,shapes);
}
I am saving a grid's column layout to localStorage in a beforeunload event. In the Vue mounted event I restore the column layout (once). To do this I have the grid's auto-bind set to false.
const opts = this.$refs.indexGrid.kendoWidget().getOptions();
-- set the column widths in opts.
this.$refs.indexGrid.kendoWidget().setOptions(opts);
After restoring the columns I call the data source read method to load the data (this.$refs.ds.kendoWidget().read()) but nothing happens.
Does it have to do with the call to setOptions as options contains dataSource info.
We like to use dropdown inside the grid , so we using this (https://www.telerik.com/kendo-vue-ui/components/grid/editing/#toc-setting-custom-editors) example in our project we are getting this error
Uncaught TypeError: $(...).appendTo(...).kendoDropDownList is not a function
at VueComponent.categoryDropDownEditor (git.vue?26ca:154)
Anyone help me on this ?
I need to be able to call grid hideColumn() method using the vue wrapper.
I've wired up the event from the grid like this:
<kendo-grid :before-edit="beforeEdit">
and then in my vue js I have:
methods: {
beforeEdit: function (e) {
//how to hide column of the grid here?
}
}
In the jQuery examples I could use 'this' to reference the grid but what is the method when using vue?
Thanks
Tony
I want to collapsible splitter for custom button.
not splitbar.
How can collaspe control Splitter to custom button?
Hello!
Any chance you could post sample code of layouts like the Veautify team did?
https://vuetifyjs.com/en/layout/pre-defined
The dashboard sample (https://github.com/telerik/vue-dashboard) hasn't been updated in a while and it doesn't work in IE11
Thanks!
Hello!
I have a problem:
I was going to use kendo-grid with typescript. I use npm packages @progress/kendo-grid-vue-wrapper and typescript version ^2.9.2. When I used sample with localdatasource, I got the error:
vue.runtime.esm.js?2b0e:1819 TypeError: Cannot read property 'length' of undefined
at VueComponent.mounted (index.js?363d:39)
at callHook (vue.runtime.esm.js?2b0e:3025)
in this code @progress/kendo-base-components-vue-wrapper/dist/es/kendo-base-component/index.js?363d
mounted: function mounted() {
if (this.$el.classList.length > 0) { <-- $this.el is #comment node and does not have classList property
this.nativeClasses = [].concat(_toConsumableArray(this.$el.classList));
} else {
this.nativeClasses = [];
}
I have a web application on which I have a grid which is fed by a datasource object.
The datasource essentially queries a url, but the data to be sent (transport.read.data) is actually dynamic and I would like it to be bound to some parameter of my view.
I tried to do it this way:
<kendo-datasource ref = "myDataSource"
transport-read-data-type="json"
:transport-read-url = "dataURL"
:transport-read-cache = false
:transport-read-data = "dataArgs"
schema-data="aums">
</kendo-datasource>
with dataURL and dataArgs being computed properties in my view instance.
However, when they are updated in the vue instance, the changes do not propagate to the Datasource.
Is this a known issue?
Thanks.