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.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support
Resources
Design and Productivity Tools
Hello Acshaya,
Thank you for reaching out.
Yes, you can use same reference in different elements, but when you fetch it you will only get the first reference. In order to fetch all the references, use the ViewChildren decorator as seen below:
<button kendoButton (click)="toggle()">Toggle!</button> <kendo-autocomplete #autocomplete [data]="areaList"> </kendo-autocomplete> ; <kendo-autocomplete #autocomplete [data]="areaList"> </kendo-autocomplete>
@ViewChildren('autocomplete') public autocomplete; public toggle() { this.autocomplete._results.forEach((dropdown) => { dropdown.toggle(); }); }
In this StackBlitz example, the toggle method is applied to both the Kendo UI AutoComplete components with the same template reference variable.
I hope this helps. Please let me know if I can further assist you.
Regards, Hetali Progress Telerik