Blazor TreeGrid Example - AI-Powered Adaptive Structuring
This demo highlights the use of AI to structure and correct erroneous hierarchical data within a Tree Grid. The AI-powered prompt identifies and organizes data items into a hierarchical format by accurately establishing parent-child relationships, ensuring the data is properly nested and ready for display in the Tree Grid component.
Explore our Smart AI demos with limited AI token usage directly in your browser. To dive deeper and try out these features locally using your own API key, check out our Syncfusion Smart AI Samples on GitHub.
Category ID | Category Name | Status | Last Order Date |
---|
1 | Electronics | Available | 7/12/2021 |
2 | Cell phone | out of Stock | 6/17/2021 |
6 | Chair | Available | 3/3/2021 |
4 | Cloth | Available | 10/5/2021 |
9 | Fabrics | Available | 10/5/2021 |
7 | Furniture | Available | 3/5/2021 |
3 | Computer | Available | 7/12/2021 |
5 | Silk | Out of Stock | 9/2/2021 |
8 | Bed | Available | 3/5/2021 |
Utilizing a specialized AI prompt, the system scans a dataset to identify and restructure hierarchical relationships between records. The AI meticulously corrects any misassigned relationships by adjusting the ParentId fields, aligning them with their respective top-level CategoryId. The resulting dataset, now properly organized, is then bound to the Tree Grid for a coherent and accurate display.