CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

OnSelect event

by etwoss » 27 Oct 2015 09:21

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
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 27 Oct 2015 10:30

Hello,

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

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 27 Oct 2015 11:07

Hi

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

Why are they published properties?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 27 Oct 2015 11:16

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
You do not have the required permissions to view the files attached to this post.
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to JQTabs

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.