Skip to content

Commit d6195c8

Browse files
committed
chore: apply marketing recommendations
1 parent 17b7751 commit d6195c8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

components/grid/refresh-data.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ position: 53
1010

1111
# Grid - Refresh Data
1212

13-
@[template](/_contentTemplates/common/observable-data.md#intro)
13+
One of the key features of Telerik UI for Blazor Grid component is its ability to refresh the data displayed, ensuring that the Grid always presents the most up-to-date information. Whether you are working with large datasets or frequently changing data sources, understanding how to efficiently refresh the data in the Grid is crucial for maintaining both optimal performance and user experience. This guide covers various methods and best practices for refreshing data in the Telerik UI for Blazor Grid, helping you choose the right approach for your specific application needs related to Blazor DataGrid live update.
1414

1515
In this article:
1616

@@ -106,14 +106,16 @@ You can refresh the Grid data by using the `Rebind` method exposed to the refere
106106

107107
## Observable Data
108108

109+
@[template](/_contentTemplates/common/observable-data.md#intro)
110+
109111
@[template](/_contentTemplates/common/observable-data.md#observable-data)
110112

111113
@[template](/_contentTemplates/common/observable-data.md#observable-data-onread-note)
112114

113115
>caption Bind the Grid to an ObservableCollection, so it can react to collection changes.
114116
115117
````CSHTML
116-
@* Add/remove employee to see how the Grid reacts to that change. *@
118+
@* Add/remove employee to see the Blazor DataGrid live update in action. *@
117119
118120
@using System.Collections.ObjectModel
119121
@@ -369,7 +371,7 @@ This means that you need to ensure that the view-model will be updated as well,
369371

370372
* Update the local view-model data yourself with the information the grid event gives you (e.g., insert the new item in it, or remove a deleted item, or update the fields of an edited item). You can find similar code used in the [Grid - Inline Editing Live Demo](https://demos.telerik.com/blazor-ui/grid/editing-inline).
371373

372-
* It is important to ensure the change happens on the object the grid uses. Methods like `.FirstOrDefault()` may return a new reference and thus changing them may not trigger are UI update.
374+
* It is important to ensure the change happens on the object the grid uses. Methods like `.FirstOrDefault()` will return a new reference and thus changing them will not trigger are UI update.
373375

374376

375377
## See Also

components/grid/virtual-scrolling.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Virtual Scrolling
33
page_title: Grid - Virtual Scrolling
4-
description: Enable and configure virtualization in the Blazor Grid with virtual scrolling - an alternative to paging.
4+
description: Enable and configure virtualization in Blazor Grid with virtual scrolling - an alternative to paging.
55
slug: components/grid/virtual-scrolling
66
tags: telerik,blazor,grid,virtual,scrolling
77
published: True
@@ -18,6 +18,8 @@ You can also use the Blazor Grid virtualization for the Grid columns. See the [C
1818

1919
## Using Virtual Scrolling
2020

21+
For the Blazor Grid virtualization to work, you need to:
22+
2123
1. Set the `ScrollMode` parameter to `GridScrollMode.Virtual` (the default value is `Scrollable`).
2224
1. [Set the `Height` parameter](#setting-a-value-for-the-height-parameter).
2325
1. [Set the `RowHeight` parameter](#setting-a-value-for-the-rowheight-parameter).

0 commit comments

Comments
 (0)