Reputation: 1
This paragraph is translated from French.
I'm really stuck. my problem in my application is as follows:
I am currently developing an implementation Ext js. I would like to disable rows in a grouped grid. I use Ext.Fly function (() getNodes grid.getView () [index Store].) mask ().;
except that when the group in my inner gate is closed (collapsed). Ext.fly the statement returns a error (Ext.fly is null).
I wonder if there is a way to disable a row in a grouped grid other than Ext.fly.
Thank you in advance for the answer.
Upvotes: 0
Views: 968
Reputation: 669
If it helps please try Use grid beforeselect event to disable selection, view getRowClass method to style row .
viewConfig: {
getRowClass: function (record, index) {
// disabled-row - custom css class for disabled (you must declare it)
if (record.get('name') == disabled_name) return 'disabled-row';
}
},
listeners: {
beforeselect: function (sm, record) {
if (record.get('name') == disabled_name) return false;
}
},
Hope this helps you. Below link might help you as well http://www.sencha.com/forum/showthread.php?208836-Gridpanel-Row-Disable
Upvotes: 1