You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/data-management/grid/export/excel-export.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ By default, the Telerik UI Grid for {{ site.framework }} exports only the curren
117
117
118
118
## Customizing Excel Documents
119
119
120
-
The [`ExcelExport()`](/api/Kendo.Mvc.UI.Fluent/GridEventBuilder#excelexportsystemstring) event allows the customization of the generated Excel document. The `workbook` event argument exposes the generated Excel workbook configuration. For more information on how the Excel documents work, refer to the article on [Excel export in Kendo UI for jQuery]({% slug introduction_excelexport_kendoui %}).
120
+
The [`ExcelExport()`](/api/Kendo.Mvc.UI.Fluent/GridEventBuilder#excelexportsystemstring) event allows the customization of the generated Excel document. The `workbook` event argument exposes the generated Excel workbook configuration. For more information on how the Excel documents work, refer to the article on [Excel export in Kendo UI for jQuery](https://docs.telerik.com/kendo-ui/framework/excel/introduction).
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/data-management/grid/scrolling/endless.md
+65-12Lines changed: 65 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,31 +10,32 @@ position: 3
10
10
11
11
Endless scrolling is suitable when you display large number of items and use editing, grouping, filtering, sorting, or hierarchy.
12
12
13
-
For runnable examples, refer to:
14
-
*[Demo on endless scrolling of remote data by the Grid](https://demos.telerik.com/{{ site.platform }}/grid/endless-scrolling-remote)
13
+
For a runnable example, refer to the [demo on endless scrolling of remote data in the Grid](https://demos.telerik.com/{{ site.platform }}/grid/endless-scrolling-remote).
15
14
16
15
## Getting Started
17
16
18
17
To enable endless scrolling, set the [`Scrollable.Endless(true)`](/api/Kendo.Mvc.UI.Fluent/GridScrollSettingsBuilder#endlesssystemboolean) property to `true`.
19
18
20
-
> For the functionality to work as expected there are two requirements:
21
-
> -There needs to be a vertical scrollbar
22
-
> -The height of the grid should be constant
19
+
> For the functionality to work as expected, provide for the following requirements:
20
+
> -Implement a vertical scrollbar.
21
+
> -Set a constant height to the Grid.
23
22
24
23
The Grid supports endless scrolling both when it is bound to local and remote data:
25
24
* When bound to local data arrays, the Grid serializes all items to the client and while the user scrolls, the widget displays new items.
26
25
* When bound to remote data, the Grid serializes only the items for one page. When the user scrolls to the end of the list, the Grid sends an AJAX request to get the items for the next page. When the data is returned, the Grid renders only the new items and appends them to the old ones.
@@ -46,17 +47,69 @@ Endless scrolling works with editing in a similar way as it works with regular p
46
47
## Using with Grouping
47
48
48
49
Out of the box, endless scrolling works together with grouping. However, when the two features are used together, the Grid behaves in the following specific way:
49
-
* If the Grid is scrolled to the bottom, the number of the items it will request will be equal to the number of items and the page size.
50
+
* If the Grid is scrolled to the bottom, the number of the items it will request will be equal to the number of items on the page size.
50
51
* If the last group of items is collapsed, the Grid will still make requests for the items from that group.
51
52
* If a group of items spans across multiple pages, the Grid will make multiple requests.
52
53
* When a particular subset of items is returned, the items will be rendered and hidden because the group is collapsed. The Grid will continue to request the items until a new group is reached or until none of the items are present for to be requested.
53
54
54
55
## Using with Hierarchy
55
56
56
-
If the Grid displays hierarchical data and an item gets expanded, it will not be collapsed when the items are scrolled and a new page will be requested.
57
+
If the Grid displays hierarchical data and an item gets expanded, it will not be collapsed when the items are scrolled, and a new page will be requested.
57
58
58
59
> The filtering, sorting, and grouping operations reset the scroll position.
59
60
61
+
## Using with DataSource Operations
62
+
63
+
When a filter, sort, or group is applied through the [`DataSource` methods](https://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods) and not through the Grid UI, the scroll position will not be automatically reset.
64
+
65
+
In such cases, you have to manually update the scroll position and [`pageSize`](https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/pagesize).
let filter = {field: "exampleField", operator: "eq", value: "example value"}
104
+
grid.dataSource.filter(filter);
105
+
</script>
106
+
```
107
+
{% endif %}
108
+
109
+
## Known Limitations
110
+
111
+
Either enable endless scrolling or paging, and do not use both features simultaneously.
112
+
60
113
## See Also
61
114
62
115
*[Endless Scrolling of Remote Data by the Grid HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/grid/endless-scrolling-remote)
0 commit comments