locked
multiSize items in ListView not working in RC

    Question

  • I had a listview with varying heights and it was working fine. I upgraded to RC and it stopped working...

    List View

                    <div class="homelistview" 
                        data-win-control="WinJS.UI.ListView"
                        data-win-options="{ 
    
                            itemDataSource: data.tasks.dataSource, 
                            groupDataSource: data.tasks.groups.dataSource, 
                            itemTemplate: renderTask, 
                            groupHeaderTemplate: renderProject, 
                            selectionMode: 'multi', 
                            tapBehavior: 'invokeOnly', 
                            swipeBehavior: 'select', 
                            layout: { 
                                    groupInfo: groupInfo, 
                                    type: WinJS.UI.GridLayout 
                                    } 
                        }">
                    </div>

    groupInfo

    function groupInfo() {
        return {
            multiSize: true,
            slotWidth: 1,
            slotHeight: 50
        };
    }


    www.emadibrahim.com

    Friday, June 1, 2012 7:50 PM

Answers

  • Your groupInfo function's return object needs to contain properties named enableCellSpanning, cellWidth, and cellHeight--there was a name change.

    .Kraig

    • Marked as answer by Emad Friday, June 1, 2012 9:14 PM
    Friday, June 1, 2012 9:01 PM

All replies

  • Your groupInfo function's return object needs to contain properties named enableCellSpanning, cellWidth, and cellHeight--there was a name change.

    .Kraig

    • Marked as answer by Emad Friday, June 1, 2012 9:14 PM
    Friday, June 1, 2012 9:01 PM
  • GREAT!!!  Now, how am I supposed to find these changes?  It was not listed in the migration guide document.

    Thanks.


    www.emadibrahim.com

    Friday, June 1, 2012 9:15 PM
  • Some things slip through the cracks with the migration docs, this being one of them (and the type change to the WinJS.xhr responseXML object, which is generating traffic today, being the other). Hence the forums here which do a pretty good job of catching and surfacing the rest.
    Friday, June 1, 2012 9:29 PM
  • cool man...  I just thought there was another doc somewhere that I didn't know about.  I love this forum...  I don't think I would be even to go past the login screen without this forum :)

    www.emadibrahim.com

    Friday, June 1, 2012 10:21 PM