Results 1 to 6 of 6

Thread: TreeGridView missing elements

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    112

    Default TreeGridView missing elements

    When I scroll up and down a long list of items in TreeGrid sometimes I see rows that are rendered incomplete. For example the image shows that Edit and Delete anchors are missing on certain rows.


    Image 1.jpg

    The occurrences don't always happen on the same rows, but it's easily found after I scroll up and down couple times. Seen easily on IE, less on Chrome.

    When I disable TreeGridView buffer, setBufferEnabled(false), it seems to help. But what are the side effects for disabling buffer? Is there a better fix?

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

    Default

    Are you using Widgets on these columns?

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    112

    Default

    No I am using GridCellRenderer

    Code:
    ColumnConfig col = new ColumnConfig();
            col.setWidth(50);
            col.setMenuDisabled(true);
            col.setSortable(false);
            col.setAlignment(HorizontalAlignment.CENTER);
            col.setRenderer(new GridCellRenderer<FormItem>() {
                public Object render(FormItem model, String property, ColumnData config, int rowIndex, int colIndex,
                        ListStore<FormItem> store, Grid<FormItem> grid) {
                    Anchor a = new Anchor("Edit");
                    a.addClickHandler(newActionClickHandler(AppEvents.Edit, model));
                    return a;
                }
            });

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

    Default

    Yes and you are returning a widget in there. This is a known issue and should already be fixed in SVN

  5. #5
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    112

    Default

    Ok great. Allow me to ask then in general what does disabling buffer do? and on what condition should I consider disable?

    By the way, where can I read about the original bug report? Thanks.

  6. #6

Posting Permissions

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