i want to impl pages navigation in grid and tree,what’s control can be use?
like this image
page.BMP (34.4 KB)
Hello,
a simple way is to use the TEXTGRID2 -Control with using a selectprop and onclickmethod or ondblclickmethod.
In the clickmethod you can navigate Adapter-Methods f.e. this.switchToPage(“editor.html”);
Before you switch to another page you can use findAdapter(targetclass.class) and set parameters with the setter-Methods in the target-class :
Regards
Ingo
My english is too poor.my means is grid pagination,like below image
OK…next try… my english isn’t very good, too
Sry… i don’t have any example…
Maybe helpful : TEXTGRIDSSS2 for server-side-rendering of the textgrid.
Generate a list with your pagenumbers “Page 1 2 3 …” dependent on your amount of items.
I suggest a HTTP-Get-Parameter wihtin these links to the adapter.
At request you have to clear your textgrid with m_lines.clear() and output the desired rows with the formula
( Pagenumber - 1 ) * ItemsPerPage
as an offset like
the MYSQL-Clause … LIMIT BASE,SIZE
thx,i’m try…