CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWCGBSPagination Question

by dfields » 12 Jun 2020 08:01

How do I set the Active property of a specific button at runtime?
Posts: 130
Joined: 24 Jul 2013 20:14

by dfields » 22 Jun 2020 05:11

I figured it out. Here is the code I used in the OnClick event of the Pagination control

Code: Select all
procedure TIWFormBootStrap1.Pagination1IWCGHTMLBSPaginationElementElements0Elements0Events0(Sender: TObject; AParams: TStringList);
var idx : integer;
  idx := APArams.Values['index'].ToInteger;
  PaginationItem := TIWCGBSPaginationItem(Pagination1.Html.Elements[0].Elements[0].Elements[idx]);
  PaginationItem.Active := true;
Posts: 130
Joined: 24 Jul 2013 20:14

Return to General


Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.