Results 1 to 3 of 3

Thread: Adding pagingToolBar to Grid

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default 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

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    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));
    }

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default

    thank u. Adding paginToolbar to VLC is the approach i have taken

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •