Results 1 to 4 of 4

Thread: RowNumberer broekn when used with LiveGridView

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    LA
    Posts
    42

    Default RowNumberer broekn when used with LiveGridView

    take the live grid sample/exmaple (gxt-examples/#ExamplePlace:livegrid)
    slap on it
    RowNumberer<Post> numbererColumn = newRowNumberer<Post>();

    and notice the numbers are all over the place, the numbers repeat, it does not look like it's working.

    any suggestion ?

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006

    Default

    Hello there-

    My apologies for the delay in response. I have shared this with support to look into. We appreciate you bringing this to our attention.

    Kind Regards,

    Michele

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    LA
    Posts
    42

    Default

    i did some more tests
    added in the data structure a new column called index, and gave it values from 1 to 1000 (added 1000 rows)
    if i do like this problem is still there absolutely no change in behaviour
    RowNumberer<Post> numbererColumn = newRowNumberer<Post>(new IdentityValueProvider<Post>("index"));
    i'm not sure why is not taking the "custom" IdentityValueProvider

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Location
    LA
    Posts
    42

    Default

    any idea how to fix it ?
    i took RowNumberer.class from GXT in my app i made a file called RowNumberer.java and i'm importing my RowNumberer

    i assume the problem is here in those 2 functions:, any suggestion on how to fix it ?
    Code:
      public RowNumberer(ValueProvider<M, M> valueProvider, RowNumbererAppearance appearance) {
        super(valueProvider);
        this.appearance = appearance;
        setWidth(23);
        setCellPadding(false);
        setSortable(false);
        setResizable(false);
        setFixed(true);
        setHideable(false);
        setMenuDisabled(true);
        setHeader(appearance.renderHeader());
        setCellClassName(appearance.getCellClassName());
    
    
        setCell(new AbstractCell<M>() {
          @Override
          public void render(Context context, M value, SafeHtmlBuilder sb) {
            RowNumberer.this.render(context, value, sb);
          }
        });
      }
    
      protected void render(Context context, M value, SafeHtmlBuilder sb) {
        appearance.renderCell(context.getIndex() + 1, sb);
      }

Similar Threads

  1. Using LiveGridView with RowNumberer
    By eprice in forum Sencha GXT Q&A
    Replies: 3
    Last Post: 9 Jan 2019, 12:06 AM
  2. Replies: 1
    Last Post: 30 May 2012, 11:18 AM
  3. Exception with LiveGridView
    By salmondavid888 in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 24 Dec 2010, 6:32 AM
  4. LiveGridView last row bug
    By support_csd_kz in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 23 Apr 2010, 10:04 PM

Posting Permissions

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