Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable visibility of section 'Go To Page' #371

Closed
peterM opened this issue Nov 23, 2022 · 10 comments
Closed

Configurable visibility of section 'Go To Page' #371

peterM opened this issue Nov 23, 2022 · 10 comments

Comments

@peterM
Copy link

peterM commented Nov 23, 2022

Is here possibility to hide whole section 'Go to' ?

<div class="grid-goto-page form-group">

@gustavnavar
Copy link
Owner

Package version 4.0.4 implements this feature

@peterM
Copy link
Author

peterM commented May 7, 2023

perfect... thanks

@BahdanauYa
Copy link

When I updated to the last version I don't see pages and "Go To Page" at all. Is this a bug? or hiding is default behaviour now and I should to enable pages somehow

@peterM
Copy link
Author

peterM commented Aug 11, 2023

@BahdanauYa try to set in c# property

GridComponent.Grid.Pager.GoToVisibility = true;

@BahdanauYa
Copy link

no, doesn't show up

@peterM
Copy link
Author

peterM commented Aug 11, 2023

only update what i see in this file is decoration with if statement.

        @if (GridComponent.Grid.Pager.GoToVisibility)
        {
            <div class="grid-goto-page form-group">
                <label class="control-label"><b>@Strings.Goto</b></label>
            <div>
                <input class="form-control grid-goto-page-input" @bind="_currentPage" @onkeyup="GoToKeyup" @onblur="GoToBlur" @onclick:stopPropagation />
            </div>
        </div>
        }

Did you set GridClient and also GridServer option ? Could you post your code ?

@gustavnavar
Copy link
Owner

Is there any exception issued by the GridPagerComponent?

@BahdanauYa
Copy link

I set GridClient and used GridODataClient (not GridServer). I don't see any exceptions.

<GridComponent GridCellCssClass="this-cell-style" T="SomeDto" Grid="@_grid"></GridComponent>
......
private IGridClient<SomeDto> _client;
private CGrid<SomeDto> _grid;
....
_client = new GridODataClient<SomeDto>(httpClient, url, query, false, "someGrid", Columns, 20, CultureInfo.CurrentCulture)
                .ChangePageSize(true)
                .ClearFiltersButton(true)
                .Searchable()
                .Selectable(true)
                .SetStriped(true)
                .WithMultipleFilters()
                .WithGridItemsCount()
                .ODataCrud(false, false, false, false)
                .SetHeaderCrudButtons(true)
                .SetCrudButtonLabels("Add", "View", "View", "Delete")
                .HandleServerErrors(false, true);
            _grid = _client.Grid;
            _grid.Pager.GoToVisibility = true; // tried on new version

This code worked on 4.0.1
but now I see only Show in table footer
1_2RdNRoDJmqfArWaViXal-g

@peterM
Copy link
Author

peterM commented Aug 12, 2023

Strange ... I do not know what can cause it .. unfortunately i am not able to try it personally.

@gustavnavar
Copy link
Owner

I can not reproduce your issue. I've just tested your grid configuration and it works fine:
Captura (195)

I don't understand what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants