-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
When clicking an Edit button in a ListView with EditItemTemplate defined, the ItemEditing event fires correctly but the ListView does not visually swap from ItemTemplate to EditItemTemplate for the edited row.
Steps to Reproduce
- Navigate to /ControlSamples/ListView/CrudOperations
- Click the Edit button on any row
- Status changes to 'Editing item X' (callback fires correctly)
- Row still shows Edit/Delete buttons instead of Update/Cancel (template doesn't swap)
Analysis
HandleEditCommand correctly fires ItemEditing, sets EditIndex, and calls StateHasChanged(). But the re-render doesn't pick up the changed EditIndex for template selection at line 59 of ListView.razor.
Files
- src/BlazorWebFormsComponents/ListView.razor (line 59)
- src/BlazorWebFormsComponents/ListView.razor.cs (line 282-288)
- samples/AfterBlazorServerSide/Components/Pages/ControlSamples/ListView/CrudOperations.razor
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working