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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...