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
I thought this would be an easy out of the box, but I was looking to have one detail open at a time. How would I achieved that
thanks in advance
Hi John,
In order to have one detail open at a time in the Kendo UI Master-Detail Grid, use the detailExpand event to update the expandedDetailKeys collection. For example:
<kendo-grid kendoGridExpandDetailsBy="ProductID" [(expandedDetailKeys)]="expandedDetailKeys" (detailExpand)="detailExpand($event)" > <ng-template kendoGridDetailTemplate let-dataItem> </ng-template> </kendo-grid>
public expandedDetailKeys: number[] = [1]; public detailExpand(e) { this.expandedDetailKeys = [e.dataItem.ProductID]; }
Please take a look at this StackBlitz example where I have demonstrated the above discussed approach.
I hope this helps. Feel free to reach out if you have any further questions pertaining to controlling the expanded state of the detail Grid.
Regards, Hetali Progress Telerik