Results 1 to 2 of 2

Thread: Grid Column renderer not working

  1. #1
    Sencha User
    Join Date
    Mar 2016
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default Grid Column renderer not working

    Hi,

    This is my grid setup:

    Code:
    render () {    
      return (
        <Container layout='fit' >
          <Grid store={this.store} >
            <Column text="Name" dataIndex="name" flex="1"/>
            <Column text="Start date" dataIndex="start_date" flex="1" renderer={() => <div>test</div>} />
            <Column text="Due date" dataIndex="due_date" flex="1"/>
            <Column text="Status" dataIndex="status" flex="1"/>
          </Grid>
        </Container>
      )
    }
    But I get the error -> Cannot read property 'render' of undefined

    It has to do with the column renderer I added, because it started to appear since I added that. Any thoughts?

    Tnx

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,577
    Answers
    165
    Vote Rating
    81
      0  

    Default

    If you can reproduce it in a fiddle that would be helpful, but it is working for me.

    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. [2.3.1] Ext.grid.column.Number not working with default renderer
    By NMeunier in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 29 Nov 2013, 6:20 AM
  2. Ext.grid.ColumnModel: Default renderer overwrites column renderer.
    By Bojoer in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 25 Mar 2011, 4:49 AM
  3. grid column renderer - 'onclick' not working
    By bohemian in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 11 Jun 2010, 6:34 AM

Posting Permissions

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