Mewriick / Blazor.FlexGrid

GridView component for Blazor
MIT License
199 stars 35 forks source link

Bindable page size #76

Closed Joebu closed 4 years ago

Joebu commented 4 years ago

Is there a way to change the page size with binding so I can have a drop down with different options

Mewriick commented 4 years ago

Hello @Joebu

you mean that you have separate dropdown component with numubers which is connected to the page size of the grid?

Joebu commented 4 years ago

correct

`<select @bind="@PageSize">

    <option value="50">50</option>
    <option value="100">100</option>
</select>

<GridView PageSize="@PageSize">`

Mewriick commented 4 years ago

@Joebu

There is problem this can be done only for the first time when you create the grid because, after the paramteres are set and TableDataSet object is created, every parameter change is not applicated. I will think how to do this works for these kind of scenarios. Whole problem is in OnParametersSetAsync method which have some checks which not affect grid

Mewriick commented 4 years ago

@Joebu

Version 0.11.0 contains new feature and will help solve your problem. See the wiki