Results 1 to 4 of 4

Thread: Problem with Row Expander plugin in Ext 4.2 [NOT MVC]

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    183
    Answers
    6
    Vote Rating
    2
      0  

    Default Answered: Problem with Row Expander plugin in Ext 4.2 [NOT MVC]

    Hello!

    I'm having a problem with rowexpander plugin, i'm getting error in chrome and firefox, this error occurs when the grid is called.

    Error:
    Uncaught TypeError: Cannot call method 'substring' of undefined
    Here is the code
    Code:
    grid definition
    ...
    plugins: [{
         ptype: 'rowexpander',
         rowBodyTpl: new Ext.XTemplate(
           '<p>Origem: {origem}</p>'
         ),
        expandOnDblClick: true
    }],
    ... columns
    Thanks!

  2. I resolved this problem by adding the component script directly in the page's head.

    <script type="text/javascript" src="../includes/ext4.2/resources/RowExpander.js"></script>
    Thanks!

  3. #2
    Sencha User
    Join Date
    Oct 2013
    Posts
    4
    Vote Rating
    0
      0  

    Default

    I experienced similar issue with extjs 4.2. I then referenced extjs 4.0.7 version and everything started working.

  4. #3
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,790
    Answers
    405
    Vote Rating
    260
      0  

    Default

    I couldn't find any helpful information based on that error message. I created this test Fiddle using your plugin configuration:
    https://fiddle.sencha.com/#fiddle/1ah

    Hopefully someone has seen this and will post, but you might try posting more of your code, perhaps in a Fiddle.


    Join me at SenchaCon 2016!

  5. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    183
    Answers
    6
    Vote Rating
    2
      1  

    Default

    I resolved this problem by adding the component script directly in the page's head.

    <script type="text/javascript" src="../includes/ext4.2/resources/RowExpander.js"></script>
    Thanks!

Posting Permissions

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