Skip to content

Commit fb0dfb2

Browse files
authored
docs(Grid): Show how to the get SearchBox value (#2780)
1 parent 2b49ab5 commit fb0dfb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/grid/manual-operations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private async Task OnGridRead(GridReadEventArgs args)
293293

294294
## Get Information From the DataSourceRequest
295295

296-
With a few simple loops, you can extract information from the DataSourceRequest object to use in your own API (such as filters, sorts, paging state).
296+
With a few simple loops, you can extract information from the DataSourceRequest object to use in your own API (such as filters, sorts, paging state). The [Grid SearchBox value](slug:grid-searchbox) can be extracted in two ways: from the last `CompositeFilterDescriptor` in the `args.Request.Filters` collection, or from the [`SearchFilter` property of the Grid state](slug:grid-state#information-in-the-grid-state).
297297

298298
````RAZOR
299299
@using Telerik.DataSource
@@ -307,6 +307,9 @@ With a few simple loops, you can extract information from the DataSourceRequest
307307
FilterMode="@GridFilterMode.FilterRow"
308308
Pageable="true" PageSize="15"
309309
Height="400px">
310+
<GridToolBarTemplate>
311+
<GridSearchBox />
312+
</GridToolBarTemplate>
310313
<GridColumns>
311314
<GridColumn Field="Id" />
312315
<GridColumn Field="Name" />

0 commit comments

Comments
 (0)