Page 1 of 1

OnSelect event

PostPosted: 27 Oct 2015 09:21
by etwoss
Hi

I have a TIWCGJQTabs with two tabs.
On the second tab i have a OnSelect eventhandler.

I expected it to fire when i select that tab.

It does not.

When should it fire?

Eric

Re: OnSelect event

PostPosted: 27 Oct 2015 10:30
by Alexander Bulei
Hello,

I'm sure, you are using JQEvents, but you can't.
You need use the JQTabOptions.OnSelect event.

Best Regards.

Re: OnSelect event

PostPosted: 27 Oct 2015 11:07
by etwoss
Hi

>>I'm sure, you are using JQEvents, but you can't.

Why are they published properties?

Eric

Re: OnSelect event

PostPosted: 27 Oct 2015 11:16
by etwoss
Hi


Ok i now set the RowNum on the Select:

Code: Select all
  if IWCGJQTabsUserMain.ActiveTab = IWCGTabServices then
  begin
    GridProfile.JQGridOptions.RowNum := UserSession.IMSession.RowNum;
    ReloadGrid(GridProfile);
    btnExportProfile.Enabled := (GridProfile.JQGridProviderCells.Rows.Count > 0);
  end
  else if IWCGJQTabsUserMain.ActiveTab = IWCGTabRequests then
  begin
    GridOrderItems.JQGridOptions.RowNum := UserSession.IMSession.RowNum;
    ReloadGrid(GridOrderItems);
    btnExportProfile.Enabled := (GridOrderItems.JQGridProviderCells.Rows.Count > 0);
  end;
end;


The numbers of Rows shown is correct (5) only not the number shown in the Pager (still 25)

Eric