I would like to implement a Custom Pager for datagrid wich has quite the
same behaviour as PageSizePager (show more button), but triggered by the
scrollbar (show more called every time that the scrollbar reach the bottom
of the table).
I would like to add a new ScrollHandler on DataGrid
Poking in the code of DataGrid, it looks like you could get access to it
this way.
HeaderPanel panel = (HeaderPanel) dataGrid.getWidget();
CustomScrollPanel scrollPanel = (CustomScrollPanel)
panel.getContentWidget();
Admittedly, this isn't very clean, but it looks like it should work.
--
Thanks jeff !
I'm going to try this :)
2011/8/16 Jeff Larsen larse...@gmail.com
HeaderPanel panel = (HeaderPanel) dataGrid.getWidget();
CustomScrollPanel scrollPanel = (CustomScrollPanel)
panel.getContentWidget();
--
You received this message because you are subscribed to the Google Groups
CellTable, DataGrid and in general all widgets that implements
HasKeyboardPagingPolicy, have a KeyboardPagingPolicy field that can be set
to INCREASE_RANGE in order to append the next page instead switching to it.
Showcase shows this functionality with CellList, using a ShowMorePagerPanel
Oh cool, I never had need for CellList so I never really played with that
example.
Thanks!
KeyboardPaging seems like the wrong name if it can be used this way.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on