Results 1 to 2 of 2

Thread: [6.5.1] Grid headers - strange behaviour

    You found a bug! We've classified it as EXTJS-26182 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2011
    Location
    Trieste, italy
    Posts
    33

    Default [6.5.1] Grid headers - strange behaviour

    Hi, in a Grid with hideHeaders property setted to true if I haven't loaded data into store I see the headers...
    With data into store
    Code:
    import React, { Component } from 'react';
    import { launch }           from '@extjs/reactor';
    import { Grid, Column} from '@extjs/ext-react';
    
    export default class MyExample extends Component {
    
        store = new Ext.data.Store({
            data: [
                { "name": "Lisa", "email": "[email protected]", "phone": "555-111-1224" },
                { "name": "Bart", "email": "[email protected]", "phone": "555-222-1234" },
                { "name": "Homer", "email": "[email protected]", "phone": "555-222-1244" },
                { "name": "Marge", "email": "[email protected]", "phone": "555-222-1254" }
            ]
        });
    
        render() {
            return (
                 <Grid store={this.store} ref={grid=>this.grid=grid} hideHeaders={true}>
                 <Column text="name" dataIndex="name"/>
             </Grid>
            )
        }
    }
    
    launch(<MyExample />);
    Without data into store
    Code:
    import React, { Component } from 'react';
    import { launch }           from '@extjs/reactor';
    import { Grid, Column} from '@extjs/ext-react';
    
    export default class MyExample extends Component {
    
        store = new Ext.data.Store({
            data: []
        });
    
        render() {
            return (
                 <Grid store={this.store} ref={grid=>this.grid=grid} hideHeaders={true}>
                 <Column text="name" dataIndex="name"/>
             </Grid>
            )
        }
    }
    
    launch(<MyExample />);
    Is this the desired behaviour?

  2. #2
    Sencha User
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Strange Grid Cell behaviour when scrolling to the right.
    By MarcoMalar in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 26 Jan 2011, 7:56 AM
  2. [CLOSED] Strange behaviour on Combo and Grid
    By erikhedb in forum Ext GWT: Bugs (2.x)
    Replies: 3
    Last Post: 5 Oct 2009, 1:37 AM
  3. Strange behaviour in editable grid.
    By shr1975 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 4 Feb 2009, 11:54 PM
  4. Strange behaviour of grid after server change
    By impactmedia in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 11 Sep 2008, 12:32 AM
  5. Grid has strange behaviour on resize
    By BigTitus in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Nov 2007, 9:08 AM

Tags for this Thread

Posting Permissions

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