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

      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
    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
    8,501
    Vote Rating
    227
    Answers
    335
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      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
    180
    Vote Rating
    2
    Answers
    6
    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