Jump to content

Grid


picyka

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...