Hello Adil,
The issue you’re describing is common when dealing with Grid DetailTemplate expansion after state changes and data operations. Here are the key points and steps to ensure the DetailTemplate re-expands as expected:
1. Correct Sequence for State Restoration
2. Use SetStateAsync for Restoring Expanded Items
var currentExpanded = state.ExpandedItems.ToList();
await GridRef.Rebind();
state.ExpandedItems = new List<Employee>(currentExpanded);
await GridRef.SetStateAsync(state);
3. Ensure Data and Model Equality
4. Data Loading Timing
5. Debugging
You can review a runnable example here: https://blazorrepl.telerik.com/mJkWYLus40nl3Z3y03
If you continue to have issues, please modify the above REPL example to reproduce the issue and send it back to me for inspection.
For now, I'm changing the status of the item to "Need More Info". Let me know how it goes.
Regards,
Tsvetomir
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.