Paging in slickgrid

4,931 views
Skip to first unread message

DK

unread,
Jun 19, 2010, 12:50:02 PM6/19/10
to SlickGrid
Hi,

This is what I am doing to display the pagination and I am sure I am
missing some part but can't figure out yet.

Here is my html code.

<div class="slickgrid" id="grid">
<div id="pager" style="width:100%;height:20px;"></div>

And here how the slickgrid is being built and it displays the data
properly but I do not see pagination at the bottom of the grid.

grid = new Slick.Grid(container, dataView.rows, columns, options);
var pager = new Slick.Controls.Pager(dataView, grid, $("#pager"));

My grid dataView is dynamically built on the fly from database query.

I have included slick.pager.js and slick.pager.css file on my page.

I would appreciate if anyone could help me with this.


Regards,
DK

DK

unread,
Jun 20, 2010, 4:17:52 PM6/20/10
to SlickGrid
I have fixed the problem and now I could see the paging.

Regards,
dk

resnyanskiy

unread,
Sep 4, 2012, 4:04:46 AM9/4/12
to slic...@googlegroups.com, dkr...@gmail.com

How did you fix it? The http://mleibman.github.com/SlickGrid/examples/example4-model.html example is very complex. So I started with only creating Slick.Controls.Pager object (just like you), but pagination buttons doesn't display.

resnyanskiy

unread,
Sep 4, 2012, 5:48:59 AM9/4/12
to slic...@googlegroups.com
I found the answer. Need a link to jquery.ui.all.css file.
Reply all
Reply to author
Forward
0 new messages