Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
Free Tools
Support and Learning
Resources
Productivity and Design Tools
Hi All,
How can we create , show , hide button in grid using vue js
Hello Binu,
In the Toolbar of the native Kendo Vue Grid, you could use the v-if directive to render or not an element:
<Grid ref="grid" ... <grid-toolbar> <div @click="closeEdit"> <button v-if="buttonVisible" title="Add new" class="k-button k-primary" @click='addRecord' > Add new </button> </div> </grid-toolbar> </Grid>
You could easily change the state of that button by changing the value of the buttonVisible data field:
toggleButton: function(e) { this.buttonVisible = !this.buttonVisible; },
Here you will find a small StackBlitz sample implementing the above suggestion.
Regards, Veselin Tsvetanov Progress Telerik