Hi,
When using datatable paginator, 2 paginators displayed - above and below the table. Is it possible to display just one of them?
Thanks.
p:datatable paginator - how to show just one?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
This has been requestes a couple of times as well, so in 1.0.0.RC we'll add options to defined which paginators will be visible. Until now you can hide the paginators simply with css;
This assumes you have only one datatable in your page, yui-dt0-paginator0 is located in header and yui-dt0-paginator1 is in footer. Again this is a workaround which would be added as a config option in 1.0.0.RC.
Code: Select all
<style type="text/css">
#yui-dt0-paginator0{
display:hidden;
}
#yui-dt0-paginator1{
display:hidden;
}
</style>
Hi,
I was just writing the same thing with Cagatay,
just a little update, each paginator has an unique id, so you do not need to have only 1 datatable in your page. You can have as many as you want. You can see your paginator id's from firebug or page source
Yigit
I was just writing the same thing with Cagatay,
just a little update, each paginator has an unique id, so you do not need to have only 1 datatable in your page. You can have as many as you want. You can see your paginator id's from firebug or page source
Yigit
Tried this
and header paginator still displayed. I'm trying to find the paginator id in the page source, but the only references to "paginator" are the imported css/js files, and that:
There is only one table in the page.
Can you help please?
Code: Select all
#yui-dt0-paginator0 {
display:hidden;
}
Code: Select all
paginator:new YAHOO.widget.Paginator({rowsPerPage:10,totalRecords:174})
Can you help please?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Sorry typo;
Code: Select all
#yui-dt0-paginator0 {
display:none;
}
Hi,
I have just tested with:
and it seems ok,
also in page's source, please search for : yui-dt0-paginator0 so that there is a div with the id yui-dt0-paginator0
I have just tested with:
Code: Select all
#yui-dt0-paginator0 {
display:none;
}
also in page's source, please search for : yui-dt0-paginator0 so that there is a div with the id yui-dt0-paginator0
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
This should work;
Code: Select all
#yui-dt0-paginator0 {
display:none;
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests