Hybrid View
-
20 Dec 2012 5:42 AM #1
Adding pagingToolBar to Grid
Adding pagingToolBar to Grid
I am trying to make a custom grid component that displays the pagingToolbar if PagingLoader is provided to it. It will not be displaying the pagingToolbar if it receives ListLoader.
I know we can add both grid and pagingToolbar to Vertical contiainer, but my requirement is as described above. Kindly let me know how to develop this custom Grid
-
20 Dec 2012 9:54 AM #2
What's wrong with just not adding the PagingToolbar to the VLC if a PagingLoader is not detected?
Something like (completely untested, only shows the idea):
Code:if (loader instanceof PagingLoader) { PagingToolbar<C,M> toolbar = new PagingToolBar<C,M>(loader); vlc.add(toolbar, new VerticalLayoutData(1.0,-1)); }
-
17 Jan 2013 5:50 AM #3
thank u. Adding paginToolbar to VLC is the approach i have taken


Reply With Quote