Blazor TreeGrid Example - AI-Powered Adaptive Structuring
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 |
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 experiment with these features locally using your own API key, check out our Syncfusion Smart AI Samples on GitHub.
A specialized AI prompt is used to scan the dataset and restructure hierarchical relationships between records. The AI intelligently corrects misassigned relationships by updating the ParentId fields to align with their appropriate top-level CategoryId. The corrected dataset is then bound to the Tree Grid for a coherent and accurate hierarchical display.