Page 1 of 1

Help with PageControl and PlatinumGrid

Posted: Thu Nov 09, 2017 7:55 am
by dbrazoli
Hello, Jon.
I need your help to implement the PageControl.
I created 4 tabs.
I defined tab 0 as activelayer.
Also I use in the tabs a grid (PlatinumGrid), defined to present 20 items per page.
If I navigate the grid to another page, the PageControl is changed to another tab, usually the first tab.
I need the active tab to remain active, without switching to another tab when I update the grid.
How to do this ??

Grateful.
Daniel.

Re: Help with PageControl and PlatinumGrid

Posted: Thu Nov 09, 2017 10:13 pm
by jomitech
Are you using Ajax? You will have to use Ajax to remain on the same page.

Re: Help with PageControl and PlatinumGrid

Posted: Fri Nov 10, 2017 7:41 am
by dbrazoli
Hello, Jon.
Yes, I am using ajax.
In the Html5Builder form, set the UseAjax option to true
On the grid I set AjaxRefreshall to true.

Is there another setting for ajax?

Grateful.
Daniel.

Re: Help with PageControl and PlatinumGrid

Posted: Fri Nov 10, 2017 11:58 pm
by jomitech
Have you tried setting AjaxRefreshAll to false?

Re: Help with PageControl and PlatinumGrid

Posted: Sat Nov 11, 2017 8:25 am
by dbrazoli
Yes, Jon.
I tried doing that too.

Re: Help with PageControl and PlatinumGrid

Posted: Wed Nov 22, 2017 9:53 am
by jomitech
I would suggest setting the ActiveTab on the PageControl when you initiate the search that populates the grid control. That way the page control will know the user is on the grid's page.