Background: Grid bound to a List provided by EF from SQL data source. Pageable=true. EditMode=Incell.
Process:
1. User clicks Add button
2. In the Add event handler for the button, a new object instance is created and added to the List that is Data bound to the grid (last item in the List not an Insert ... this is a user requirement and must be added to end of List)
3. StateHasChange(), Grid?.Rebind
4. Force the grid to scroll to the last item.
I researched and found this Telerik documentation Scroll to Selected Grid Row and it suggests I have to use JavaScript "scrollIntoView()"?? I absolutely do NOT want to go this route for what should be a very simple process. Please tell me there is a better way?
I was "hoping" I could use SelectionMode=Single and bind SelectedItemsInPage and then programmatically set the SelectedItem to the last item in the List (Data=) and Telerik Grid would do the control update to appropriate page and make the last row visible in the grid. Unfortunately this is not the case.
Do you folks have a more Blazor-Server like approach for .NET 9 and 7.1.0 suite?
Rob.