PDA

View Full Version : Problem with Row Expander plugin in Ext 4.2 [NOT MVC]



rafaelrp
29 Oct 2013, 8:53 AM
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


grid definition
...
plugins: [{
ptype: 'rowexpander',
rowBodyTpl: new Ext.XTemplate(
'<p>Origem: {origem}</p>'
),
expandOnDblClick: true
}],
... columns


Thanks! ~o)

dmandala
31 Oct 2013, 6:53 AM
I experienced similar issue with extjs 4.2. I then referenced extjs 4.0.7 version and everything started working.

Gary Schlosberg
31 Oct 2013, 11:57 AM
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 (https://fiddle.sencha.com/#home).

rafaelrp
31 Oct 2013, 2:23 PM
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! ~o)