Announcement

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

    Changing ListGrid to fixedRecordHeights:false

    Hi,

    I'm trying to give the user the ability to change a ListGrid dynamically from fixedRecordHeights:true to fixedRecordHeights:false. However, when I change that property (along with setting wrapCells from false to true ) and then call markForRedraw() on the ListGrid, the grid doesn't redraw to show the grid with fixedRecordHeights=false. Any suggestions on what I need to do in order to refresh the grid?

    #2
    Hi Senordhuff,
    Both ListGrid.wrapCells and ListGrid.fixedRecordHeights are used to set up properties on the ListGrid body, a GridRenderer (see GridRenderer.wrapCells and GridRenderer.fixedRowHeights).

    For the 5.6 release you will need to explicitly modify these properties as well as the ListGrid properties, and then call redraw, like this:
    Code:
    myGrid.setProperties({
        fixedRecordHeights:true,
        wrapCells:false
    });
    myGrid.body.setProperties({
        fixedRowHeights:true,
        wrapCells:false
    });
    
    myGrid.markForRedraw();
    For the 5.7 release you will not need to set the properties directly on the ListGrid body. Instead you will be able to simply set the properties at the ListGrid level using setProperties()

    Thanks
    Isomorphic Software

    Comment

    Working...
    X