Results 1 to 5 of 5

Thread: LiveGridView last row bug

  1. #1
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Exclamation LiveGridView last row bug

    - GXT version: 2.1.3 (revision 2031).
    - Host mode / web mode / both: both.
    - Browser and version: All.
    - Operating System: All.
    - Detailed description of the problem:
    LiveGridView loses, last row. I think it's only a livegrid bug, cos all other views with same store, loader and reader works just fine.
    - Sample code: as example let me just put a screeny: http://picasaweb.google.com/lh/photo...eat=directlink It will illustratrate this bug better then any source code

    Look: Column "?"(marked as 1), it is a row numberer, I'm getting it from sql query. Now look at liveScroller(marked as 3) it's in a extreme bottom position, as u can see at row number column the last row showed is only 4564 (marked as 2), but I have a 4565 rows in my store in fact, look at liveTool(marked 4). Last row are invisible.

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    You are wrong. A screenshot in most cases displays nothing. Please post a fully working testcase. I cannot reproduce this with any example i haev.

  3. #3
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Default

    just attach a rownumberer in
    http://www.extjs.com/examples/#livegrid

    and scroll grid in bottom, u will see liveGridView will lose a last row

  4. #4
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Default

    now i fix it like..
    when I creating a BasePagingLoadResult on server I'm seting totalLength = count +1
    and in livetoolItem im doing a substraction like:
    new LiveToolItem() {
    @Override
    protected void onUpdate(LiveGridEvent<?> be) {

    if (be.getTotalCount() != 0)
    be.setTotalCount(be.getTotalCount() - 1);
    super.onUpdate(be);
    }
    };

  5. #5
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    191

    Default

    close it plz -- it's all my bad, I'm so sorry

Tags for this Thread

Posting Permissions

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