-
23 Jan 2012 8:16 AM #1
How to combine rowexpander and roweditor plugins?
How to combine rowexpander and roweditor plugins?
I'm trying to combine roweditor and rowexpander plugins. When I double click a row, I'm getting coumn.getEditor is not a function. How do I combine both plugins?
Code:this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { clicksToMoveEditor: 1, autoCancel: false, clicksToEdit:2 }); this.mileStoneGrid = new Ext.grid.GridPanel({ store: this.gridStore, plugins: [ this.rowEditing, { ptype: 'rowexpander', rowBodyTpl: [ '<p>Definition: {Definition}</p>' ] } ], columns:[{ text: "Order Number", width: 45, dataIndex: 'ItemOrder', sortable: false, id: 'msOrderNumber' }, { text: "Item Name", width: 300, dataIndex: 'ItemName' }, { text: "Planned Date", width: 70, dataIndex: 'ScheduledDate', id: 'msPlannedDate', editor: { xtype: 'datefield' } }, { text: "Actual Date", width: 70, dataIndex: 'ActualDate', id: 'msActualDate', editor: { xtype: 'datefield' } }] }
-
23 Jan 2012 11:42 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
Looks like this is working in 4.1.0 beta 1 now.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Mar 2012 8:31 PM #3
Hi... Which is the code fix? Thanks!
Hi... Which is the code fix? Thanks!
What files change to fix the problem of combine rowexpander and roweditor?
-
2 May 2012 11:03 AM #4
I'm also interested in a solution of this problem. Can anyone give an answer ?
Regards!
-
2 Jul 2012 5:45 AM #5
I am using 4.1 stable and the problem persists. Would love to get a solution for this w/o hacking ext-all.js
an option would be injecting check for editor existance or field data before calling getEditor. but would be nice to get official fix. Thanks
-
2 Jul 2012 5:50 AM #6
found solution. easy. change the order of plugins

Code:{ xtype: 'grid', plugins: [{ptype: 'rowexpander', expandOnDblClick: false, rowBodyTpl : ['']},Ext.create('Ext.grid.plugin.RowEditing', {ptype: 'rowediting'})] }
-
2 Jul 2012 6:01 AM #7
though found another bug not that critical but still exists:
when both plugins are used, rows/fields with modified records are not being marked with the red triangle. though its cosmetic bug still kind of not that nice.
any ideas how to fix it?


Reply With Quote