Skip to content

Commit 8856597

Browse files
committed
Remove Grid scroll to selected row sample app
1 parent b2d600b commit 8856597

32 files changed

+3
-1492
lines changed

grid/scroll-to-selected-row/readme.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
# Select a Row and Scroll the Grid to it
22

3-
In some cases, you want to select a row programmatically based on some program logic and conditions, and you want the user to see it, so you want to scroll the Grid to it.
3+
This sample project was obsoleted and removed.
44

5-
To do that with **regular paging**:
5+
Please refer to KB article [Scroll to Selected Grid Row](https://docs.telerik.com/blazor-ui/knowledge-base/grid-scroll-to-selected-row).
66

7-
1. Ensure the Grid is on the same page as the record (not part of this example).
8-
* Implement if/as necessary for your project.
9-
1. Make sure the Grid has rendered after the selection operation (usually a rendering frame delay is enough).
10-
1. Use a bit of JavaScript to make the browser scroll the first selected row into view.
11-
* Tweak this logic as necessary for your case. The [`scrollIntoView` JavaScript method provides some configurations settings](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) too. For example, they control how the selected row will align to the viewport if if parent scrollbars will scroll too.
12-
13-
To scroll the Grid programmatically with **virtual scrolling**, you must set the `Skip` of the [Grid state](https://docs.telerik.com/blazor-ui/components/grid/state) to the desired item index. The example offers comments in the code on the tricky points of this, because there is no guarantee on which "page" of data this item is.
7+
If you prefer, you can [browse the removed project in an older version of this repository](https://github.com/telerik/blazor-ui/tree/b2d600be2e1663919feb48bd0403eec554e03bb2/grid/scroll-to-selected-row).

grid/scroll-to-selected-row/scroll-to-selected-row.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/App.razor

Lines changed: 0 additions & 9 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Models/Employee.cs

Lines changed: 0 additions & 24 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Pages/RegularPaging.razor

Lines changed: 0 additions & 49 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Pages/Virtualization.razor

Lines changed: 0 additions & 121 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Pages/_Host.cshtml

Lines changed: 0 additions & 36 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Program.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Properties/launchSettings.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Services/GridDataService.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

grid/scroll-to-selected-row/scroll-to-selected-row/Shared/MainLayout.razor

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)