Repository navigation
Grid Component Set Maximum Height #249
|
How can I set the maximum height of the Grid? Please note that I set AllowPaging="false". I'm using Grid on my Dashboard together with other items. However, it is taking the full height of the screen leaving no space for other items. How can I set the maximum height of the Grid without paging i.e. AllowPaging="false"? |
Answered by
gvreddy04
Jun 27, 2023
Replies: 3 comments
|
@joselitogatchalianalonzo You can use the below custom CSS appraoch. Keep the grid inside a div and give a CSS class name. In the blow example, CSS class name is <div class="employees">
<Grid @ref="grid"
TItem="Employee4"
Class="table table-hover table-bordered table-striped"
DataProvider="EmployeesDataProvider"
AllowFiltering="true"
Responsive="true">
....
</Grid>
</div>Add the below CSS in the .css file div.employees > div.table-responsive {
height: 200px !important;
}Screenshot: |
0 replies
|
@joselitogatchalianalonzo In the future version, we will add Height paramter to the Blazor Grid component |
0 replies
Answer selected by
gvreddy04
|
Thanks @gvreddy04. I will try your sample code. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@joselitogatchalianalonzo In the future version, we will add Height paramter to the Blazor Grid component