picyka Posted December 20, 2020 Share Posted December 20, 2020 Estou consumindo descanso de api, e eu gostaria de fazer paginação na grade manual, então eu preciso definir a quantidade por página, e usar os botões no paginador, eu faria isso? Link to comment Share on other sites More sharing options...
picyka Posted December 20, 2020 Author Share Posted December 20, 2020 Just now, picyka said: Estou consumindo descanso de api, e eu gostaria de fazer paginação na grade manual, então eu preciso definir a quantidade por página, e usar os botões no paginador, eu faria isso? I'm consuming api rest, and I would like to do pagination in the manual grid, so I need to set the quantity per page, and use the buttons on the paginator, would I do that? Link to comment Share on other sites More sharing options...
picyka Posted December 21, 2020 Author Share Posted December 21, 2020 You can remove that topic. Link to comment Share on other sites More sharing options...
Sherzod Posted December 21, 2020 Share Posted December 21, 2020 Hello, Have you found a solution? Link to comment Share on other sites More sharing options...
picyka Posted December 21, 2020 Author Share Posted December 21, 2020 procedure TUniFrameConsultaPadrao.SearchData(QueryFilter : String); begin if not QueryFilter.IsEmpty then QueryFilter := '&$filter=' + QueryFilter; Self.FDataset.RecordCountMode := TRecordCountMode.Retrieve; Self.FDataset.Close; Self.FDataset.SetSource( TXDataObjectSource.Create( Self.FSearch.XDataClient, Self.FSearch.Clazz, QueryFilter, Self.FSearch.PageSize ) ); Self.FDataset.Open; end; XData already offers this feature on the client side. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now