Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ShowRecordComponents in ListGrid

    Hi,

    we're using smartGWT version 2.4 and have a problem with showing components in listgrid's row.
    We have a table with custom pager component and that table contains embedded components in rows (link), that table is constructed with following constructor:
    Code:
    this.setShowFilterEditor(true);
    this.setWidth100();
    this.setAutoFetchData(false);
    this.setFixedRecordHeights(false);
    this.setWrapCells(true);
    this.setLeaveScrollbarGap(false);
    this.setAutoSaveEdits(false);
    this.setShowAllRecords(true);
    //this.setDrawAheadRatio(Integer.MAX_VALUE);
    ResultSet resultSet = new ResultSet();
    resultSet.setFetchMode(FetchMode.PAGED);
    this.setDataPageSize(pageSize);
    this.setDataProperties(resultSet);
    this.setShowRecordComponents(true);
    this.setShowRecordComponentsByCell(true);
    when we fetch more data then default drawAheadRatio (1.4), so for example 50 rows, first 20 rows (1.4 ratio) have correctly rendered link in embedded component but others no, when I set drawAheadRatio to max value, then it's rendered correctly but all requests are duplicated, so when I call fetchData 2 requests are invoked to the server

    what do you reccomend me?

    thanks,

    michal

    #2
    Hi Msimun
    A couple of things here:
    Firstly - we have recently made some changes to the RecordComponents implementation that fixes a case where record components could fail to be drawn when scrolling a grid. These changes have been committed to the 2.5.x branch and are available in nightly builds from http://www.smartclient.com/builds. Note that the 2.5.x branch is a special "bugfix only" branch - it contains only fixes to the official 2.5 release - new feature development is in progress on 3.x
    Please take a look and see if this resolves your problem with components not rendering.

    If that doesn't get things working, we're going to need more information to proceed here.

    It looks from the code posted like you're setting showAllRecords to true, which means changing the drawAheadRatio should make no difference (since all records will be rendered)
    Even with showAllRecords:false, we're not aware of any bug that would cause duplicate fetches for the same set of rows when you change the drawAheadRatio. The behavior(s) you're seeing could be due to your custom pager component or other application code.

    In short we're going to need to see the bug before we can comment further or address it. The best way to proceed would be to get us a simple standalone test case we can run that demonstrates the problem.

    Regards
    Isomorphic Software

    Comment

    Working...
    X