Results 1 to 4 of 4

Thread: Listeners not working, inner grid not showing data

  1. #1
    Sencha User
    Join Date
    Dec 2018
    Posts
    7

    Default Listeners not working, inner grid not showing data

    return (
    <Container layout={{ type: 'vbox', align: 'center', pack: 'space-between' }}>
    <Grid
    height="100%"
    title="Sessions"
    store={this.store}
    plugins={{
    rowexpander:true
    }}
    itemConfig={{
    body:{
    tpl:this.tpl
    }
    }}
    listeners={{
    expand: function(ex, record, body, rowIndex){
    console.log(record)
    cmp2 = Ext.getCmp('messagesgrid')
    if(cmp1) {
    cmp1.updateLayout();
    }
    if(cmp2) {
    cmp2.updateLayout();
    }
    },
    }}
    layout="vbox"
    shadow>
    <Column text="Session Start" dataIndex="session_start" width="150"/>
    <Column text="Session End" dataIndex="session_end" width="150"/>
    <Column text="Workflow Name" dataIndex="workflow" width="150"/>
    <Column text="Instance Id" dataIndex="instance_id" width="150"/>
    <Column text="Processed By" dataIndex="user" width="150"/>
    <Column text="Status" dataIndex="status" width="150"/>
    </Grid>
    </Container>

    )
    Attached Images Attached Images

  2. #2
    Sencha User
    Join Date
    Dec 2018
    Posts
    7

    Default The inner grid dom clientHeight getting 0? how to set actual height of the inner grid

    Quote Originally Posted by madhut72 View Post
    return (
    <Container layout={{ type: 'vbox', align: 'center', pack: 'space-between' }}>
    <Grid
    height="100%"
    title="Sessions"
    store={this.store}
    plugins={{
    rowexpander:true
    }}
    itemConfig={{
    body:{
    tpl:this.tpl
    }
    }}
    listeners={{
    expand: function(ex, record, body, rowIndex){
    console.log(record)
    cmp2 = Ext.getCmp('messagesgrid')
    if(cmp1) {
    cmp1.updateLayout();
    }
    if(cmp2) {
    cmp2.updateLayout();
    }
    },
    }}
    layout="vbox"
    shadow>
    <Column text="Session Start" dataIndex="session_start" width="150"/>
    <Column text="Session End" dataIndex="session_end" width="150"/>
    <Column text="Workflow Name" dataIndex="workflow" width="150"/>
    <Column text="Instance Id" dataIndex="instance_id" width="150"/>
    <Column text="Processed By" dataIndex="user" width="150"/>
    <Column text="Status" dataIndex="status" width="150"/>
    </Grid>
    </Container>

    )
    I am seeing inner grid dom client height as 0, and the data is not shown up, if I set some height then only the data showing, how to make it automatically extend inner grid height to support its contents?

  3. #3

  4. #4
    Sencha User
    Join Date
    Dec 2018
    Posts
    7

    Default

    I am able to use onItemTap to handle event

Similar Threads

  1. [CLOSED] Showing columns (hidden by default) via grid.applyState isn't working
    By serendipitic in forum Ext 5: Bugs
    Replies: 4
    Last Post: 8 Jul 2015, 4:10 AM
  2. Ext.data.Store:listeners:load is not working
    By Nandha kumar in forum Ext: Q&A
    Replies: 3
    Last Post: 24 Jun 2013, 5:53 AM
  3. Listeners not working on grid?
    By anubite in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 14 May 2011, 6:21 AM
  4. Listeners on elements inside data grid renderer
    By smick in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 18 Oct 2010, 9:18 PM
  5. Grid Listeners - how to make a listener only working on grid data
    By thething in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 6 Feb 2008, 6:48 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
  •