[OPEN] [#1370] [4.1.0-beta] Grid - "Lazy loading" - issue with layout.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [OPEN] [#1370] [4.1.0-beta] Grid - "Lazy loading" - issue with layout.

    I'm loading data into the store in a delayed function. The grid-layout gets messed up, and only the upper-half part of each row is showing (see picture attached below the code):
    @{
        var x = Html.X(); 
    }
    
    @(
        x.Grid()
            .Columns(
                x.Column()
                    .DataIndex("Name")
                    .Text("Name")
                    .Flex(1)
            )
            .Store(x.Store())
            .Listeners(l => l.Initialize.Handler= @"
    
                //Using setTimeout to make a delay and simulate that the data comes later in the workflow.            
    
                setTimeout(function(){
                    var data =  [];
                    for(var i=0; i<1000; i++)
                        data.push({Name:'Name'+i, });
                    item.getStore().loadData(data);
                },200);
    
                // I have tried item.refresh() here, but it doesn't help.
            ")
    )
    This is how it looks:
    Click image for larger version. 

Name:	Ext-Test-Grid-Lazy.JPG 
Views:	15 
Size:	13.5 KB 
ID:	24716
    Last edited by fabricio.murta; Aug 16, 2016 at 5:14 AM.

Similar Threads

  1. Replies: 1
    Last Post: Apr 06, 2016, 12:05 PM
  2. Replies: 3
    Last Post: Jan 28, 2016, 6:13 PM
  3. Replies: 6
    Last Post: May 31, 2013, 3:04 AM
  4. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  5. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM

Posting Permissions