1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    163
    Answers
    5
    Vote Rating
    2
    rafaelrp is on a distinguished road

      0  

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

    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
    dmandala is on a distinguished road

      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
    3,840
    Answers
    155
    Vote Rating
    67
    Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough

      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.
    Get on the Fast Track with Sencha Training http://sencha.com/training

  5. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    163
    Answers
    5
    Vote Rating
    2
    rafaelrp is on a distinguished road

      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!

Thread Participants: 2