Is it possible to access a method that was created in the Vue.JS methods with the Telerik grid, in this case a click action?
template: "<div><button @click='showClient(#:id#)'>Show Client</button></div>"
methods: {
showClient (id) {
console.log(id)
this.$router.push('/client/:id')
}
}
output render in HTML
<td role="gridcell"><div><button @click="showClient(720)">Show Client</button></div></td>
8 Answers, 1 is accepted
0
Hello,
Thank you for getting in touch with us. With the current version of Grid Vue wrapper the Vue templates support is not implemented yet we plan to add support for them in the upcoming January release. Currently in such scenario we recommend the Kendo jQuery template syntax that will work correctly. Please excuse us for this current inconvenience with the control. If you have further questions please don't hesitate to let us know.
Regards,
Plamen
Progress Telerik
Thank you for getting in touch with us. With the current version of Grid Vue wrapper the Vue templates support is not implemented yet we plan to add support for them in the upcoming January release. Currently in such scenario we recommend the Kendo jQuery template syntax that will work correctly. Please excuse us for this current inconvenience with the control. If you have further questions please don't hesitate to let us know.
Regards,
Plamen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
0

nick
Top achievements
Rank 1
answered on 27 Feb 2018, 06:25 PM
Was this support added in the January release or version 2018.1.221?
0
Hello,
Yes - you can use Vue components as templates in Kendo-Vue-UI components as for example it is described in this issue.
Regards,
Plamen
Progress Telerik
Yes - you can use Vue components as templates in Kendo-Vue-UI components as for example it is described in this issue.
Regards,
Plamen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
0

nick
Top achievements
Rank 1
answered on 05 Mar 2018, 02:31 PM
Thanks for the response.I was able to use a link as a workaround:
in the grid template but not a Vue router link like:
.
<
a
href
=
'javascript:void(0)'
@
click.prevent
=
'navigate'
></
a
>
<
router-link
to
=
"/route"
></
router-link
>
0
Hello,
Yes indeed in the current version router-link rendering inside the template is not supported.
Regards,
Plamen
Progress Telerik
Yes indeed in the current version router-link rendering inside the template is not supported.
Regards,
Plamen
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0

ZHAO
Top achievements
Rank 1
answered on 28 Apr 2018, 07:39 AM
hi,
I use the version "@progress/kendo-grid-vue-wrapper": "^2018.1.313" and "@progress/kendo-ui": "^2018.1.312", but @click is doesn't work in the colmuns.template. could you give me some help?
0

Felipe
Top achievements
Rank 1
answered on 28 Apr 2018, 04:22 PM
ZHAO https://alligator.io/vuejs/global-event-bus/
0
Hi,
You can refer to this issue where an example is provided with a similar behavior. It is important to pass the properties that you need in the template in the templateArgs object and declare it in the template component.
Hope this information will be helpful.
Regards,
Plamen
Progress Telerik
You can refer to this issue where an example is provided with a similar behavior. It is important to pass the properties that you need in the template in the templateArgs object and declare it in the template component.
Hope this information will be helpful.
Regards,
Plamen
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items