We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

An help on your example

Thread ID:





145326 Jun 17,2019 08:20 PM UTC Jun 18,2019 12:25 PM UTC Vue 2
Tags: Toolbar
Asked On June 17, 2019 08:20 PM UTC


I'm trying one of your examples using toolbar:

I'd like to bind with 2-binding v-model the input textbox (searchTemplate) with a data that I'd like to insert in the script's data.
Let's say I name this variable searchData:


Your template now is:

searchTemplate: '<div class="e-input-group"><input class="e-input" type="text" placeholder="Search" /><span class="e-input-group-icon em-icons e-search"></span></div>',

If I change it like this:

searchTemplate: '<div class="e-input-group"><input class="e-input" type="text" placeholder="Search" v-model="searchData"/><span class="e-input-group-icon em-icons e-search"></span></div>',

it does not work.
Can you help me ?

Replied On June 17, 2019 08:40 PM UTC

Related to the same example,
I've tried to change "input" with "ejs-autocomplete", but the element seems not to be taken into account by VUE and the input is not displayed at all.
I'm guessing the problem is the same as for v-model.
How is it possible to put an ejs-autocomplete with v-model and datasource on the toolbar ?

Vinitha Devi Murugan [Syncfusion]
Replied On June 18, 2019 12:25 PM UTC

Hi Silvio, 
Greetings from Syncfusion. 
In our end we rendered the templates as an individual vue component so that we can’t able to access the model value inside the template from parent component. We have prepared the workaround solution for your requirement with autoComplete control and same can be available in below link. 
Kindly try the able sample and let us know if you need further assistance on this. 
M.Vinitha devi. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon