Skip to content

Commit 05fa76c

Browse files
committed
Modified the md file
1 parent 092fbc8 commit 05fa76c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/scrolling/virtual-scrolling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ document.addEventListener("DOMContentLoaded", function () {
171171

172172
2. Render the Grid by define the following features.
173173

174-
```typescript
174+
```cshmtl
175175
@Html.EJS().Grid("Grid").DataSource((IEnumerable<object>)ViewBag.dataSource).EnableVirtualization().Height("360").BeforeDataBound("beforeDataBound").Columns(col =>
176176
{
177177
col.Field("OrderID").HeaderText("OrderID").Width("100").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add();
@@ -194,7 +194,7 @@ function beforeDataBound(args) {
194194

195195
4. Render “Load Next Set” button and “Load Previous Set” button at bottom and top of the Grid.
196196

197-
```typescript
197+
```cshtml
198198
@Html.EJS().Button("prevButton").Class("e-info prevbtn").CssClass("e-info prevbtn e-primary").Content("Load Previous Set...").Render()
199199
@Html.EJS().Grid("Grid").DataSource((IEnumerable<object>)ViewBag.dataSource).EnableVirtualization().Height("360").BeforeDataBound("beforeDataBound").Columns(col =>
200200
{
@@ -246,4 +246,4 @@ In the following image, you can see how many records will be scrollable when set
246246

247247
### Solution 3: Using paging instead of virtual scrolling
248248

249-
Similar to virtual scrolling, the [Paging](https://ej2.syncfusion.com/aspnetmvc/documentation/grid/paging/) feature also loads the data in an on-demand concept. Pagination is also compatible with all the other features(Grouping, Editing, etc.) in Grid. So, use the `paging` feature instead of `virtual scrolling` to view a large number of records in the Grid without any kind of performance degradation or browser height limitation.
249+
Similar to virtual scrolling, the [Paging](https://ej2.syncfusion.com/aspnetmvc/documentation/grid/paging/) feature also loads the data in an on-demand concept. Pagination is also compatible with all the other features(Grouping, Editing, etc.) in Grid. So, use the `paging` feature instead of virtual scrolling to view a large number of records in the Grid without any kind of performance degradation or browser height limitation.

ej2-asp-core-mvc/grid/EJ2_ASP.NETCORE/scrolling/virtual-scrolling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ document.addEventListener("DOMContentLoaded", function () {
172172

173173
2. Render the Grid by define the following features.
174174

175-
```typescript
175+
```cshtml
176176
<ejs-grid id="Grid" enableVirtualization="true" height="300" beforeDataBound="beforeDataBound">
177177
<e-grid-pageSettings pageSize=50></e-grid-pageSettings>
178178
<e-grid-columns>
@@ -197,7 +197,7 @@ function beforeDataBound(args) {
197197

198198
4. Render “Load Next Set” button and “Load Previous Set” button at bottom and top of the Grid.
199199

200-
```typescript
200+
```cshtml
201201
<ejs-button id='prevButton' class="e-info prevbtn" cssClass='e-primary' content="Load Previous Set.."></ejs-button>
202202
<ejs-grid id="Grid" enableVirtualization="true" height="300" beforeDataBound="beforeDataBound">
203203
<e-grid-pageSettings pageSize=10></e-grid-pageSettings>
@@ -251,4 +251,4 @@ In the following image, you can see how many records will be scrollable when set
251251

252252
### Solution 3: Using paging instead of virtual scrolling
253253

254-
Similar to virtual scrolling, the [paging](https://ej2.syncfusion.com/aspnetcore/documentation/grid/paging/) feature also loads the data in an on-demand concept. Pagination is also compatible with all the other features(Grouping, Editing, etc.) in Grid. So, use the `paging` feature instead of `virtual scrolling` to view a large number of records in the Grid without any kind of performance degradation or browser height limitation.
254+
Similar to virtual scrolling, the [paging](https://ej2.syncfusion.com/aspnetcore/documentation/grid/paging/) feature also loads the data in an on-demand concept. Pagination is also compatible with all the other features(Grouping, Editing, etc.) in Grid. So, use the `paging` feature instead of virtual scrolling to view a large number of records in the Grid without any kind of performance degradation or browser height limitation.

0 commit comments

Comments
 (0)