PDA

View Full Version : RowSelectionModel not working in GridView 3.0-RC2



coriolis
11 Jun 2009, 1:00 PM
For whatever reason my grid is not using the RowSelectionModel. I am not seeing any selected rows and my listeners are not being fired.

Here is the code

tryanDLS
11 Jun 2009, 1:45 PM
http://extjs.com/learn/Ext_Forum_Help#How_to_post_code_properly

euchiyama
11 Jun 2009, 2:24 PM
You should format your code correctly according to forum rules...surround your code with CODE tags

I believe this will fix it...take your selection model definition and move it outside of your GridPanel:


var sm = new Ext.grid.RowSelectionModel({
singleSelect : true,
moveEditorOnEnter : false,
listeners : {
'beforerowselect': {
fn: function(selectionModel,rowIndex,keepExisting,record) {
return false;
}
},
'rowselect': {
fn: function(selectionModel,rowIndex,record) {
alert("In Ext.grid.RowSelectionModel.rowselect");
}
},
'rowdeselect': {
fn: function(selectionModel,rowIndex,record) {
alert("rowdeselect");
}
},
'selectionchange': {
fn: function(selectionModel) {
alert("selectionchange");
}
}
}
}),Then use that reference in 2 different places in your Grid Panel configuration:



selModel : sm,
...
cm: new Ext.grid.ColumnModel({
columns: [
sm,
new Ext.grid.RowNumberer()
,
...

coriolis
11 Jun 2009, 3:17 PM
Hi,

Can you point me to the 3.0-RC2 docs where it says I need to add a selection model into the columns list. This makes no sense to me.

Thanks

tryanDLS
11 Jun 2009, 3:22 PM
Please repost your code.

SelectionModel is a config of GridPanel, not ColumnModel - see the full example in the GridPanel doc or some of the grid examples in the download.

coriolis
11 Jun 2009, 10:15 PM
new Ext.grid.GridPanel({
id: 'xYGpZruFGS',
footer: false,
stripeRows: true,
clicksToEdit: 2,
autoScroll: true,
serverSorting: false,
autoWidth: true,
autoHeight: true,
border: false,
header: false,
plugins: [new Ext.ux.RowEditor({
saveText: 'Update'
}), new Ext.ux.grid.GridFilters({
filters: [{
type: 'boolean',
dataIndex: 'DmdNRJTcuY'
},
{
type: 'string',
dataIndex: 'KHdVzQXMEL'
},
{
type: 'boolean',
dataIndex: 'ExVGRGrbPE'
},
{
type: 'string',
dataIndex: 'jpSObCirFB'
},
{
type: 'string',
dataIndex: 'XISQEGXJce'
},
{
type: 'string',
dataIndex: 'qHtuCnoRlh'
},
{
type: 'date',
dataIndex: 'KjrahnJgth'
},
{
type: 'boolean',
dataIndex: 'letlcYDymJ'
},
{
type: 'string',
dataIndex: 'YOrzhKnZwm'
},
{
type: 'string',
dataIndex: 'NSlIHhvskt'
},
{
type: 'string',
dataIndex: 'DAbdAoFewp'
},
{
type: 'string',
dataIndex: 'eHRfNomqDk'
}]
})],
tbar: [
new Ext.Toolbar.Spacer({
width: 5
}), new Ext.Panel({
width: 23,
height: 25,
border: false,
bodyStyle: 'background-color: transparent',
style: 'padding-top: 5px',
html: '<img src="images/eo.png">'
}), new Ext.Toolbar.TextItem({
text: 'Application List'
}), new Ext.Toolbar.Fill({}), new Ext.Button({
text: 'Toggle',
iconCls: 'LOfpxEQsaQ',
menu: new Ext.menu.Menu({
items: []
})
}), new Ext.Button({
text: 'Actions',
iconCls: 'LOfpxEQsaQ',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Refresh',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getStore().reload();
}

}), new Ext.menu.Item({
text: 'Edit',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Undo Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Redo Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'New Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Copy Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Deep Copy Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Delete Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Compare Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

})]
})
}), new Ext.menu.Item({
text: 'View',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Enterprise Views',
handler:

function onItemClick(item, event) {
Ext.Msg.alert('Feature not yet implemented');
}

}), new Ext.menu.Item({
text: 'Displayed Columns...',
handler:

function onItemClick(item, event) {
Ext.Msg.alert('Feature not yet implemented');
}

}), new Ext.menu.Item({
text: 'Freeze Columns...',
handler:

function onItemClick(item, event) {
Ext.Msg.alert('Feature not yet implemented');
}

})]
})
}), new Ext.menu.Item({
text: 'Go',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Previous Record',
handler:

function onItemClick(item, event) {

Ext.getCmp('xYGpZruFGS').getSelectionModel().selectPrevious();
}

}), new Ext.menu.Item({
text: 'Next Record',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getSelectionModel().selectNext();
}

}), new Ext.menu.Item({
text: 'First Record',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getSelectionModel().selectFirstRow();
}

}), new Ext.menu.Item({
text: 'Last Record',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getSelectionModel().selectLastRow();
}

})]
})
}), new Ext.menu.Item({
text: 'Export',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'To XML',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'To CSV',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

})]
})
}), new Ext.menu.Item({
text: 'Help',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Help...'
}), new Ext.menu.Item({
text: 'About Record...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Component...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Perspective...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Dimension...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Application...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

})]
})
})]
})
}), new Ext.Button({
text: 'Views',
iconCls: 'LOfpxEQsaQ',
menu: new Ext.menu.Menu({})
})],
bbar: [{
iconCls: 'icon-user-add',
text: 'Add Employee',
handler: function() {
var e = new Employee({
name: 'New Guy',
email: '[email protected]',
start: (new Date()).clearTime(),
salary: 50000,
active: true
});
editor.stopEditing();
store.insert(0, e);
grid.getView().refresh();
grid.getSelectionModel().selectRow(0);
editor.startEditing(0);
}
},
{
ref: '../removeBtn',
iconCls: 'icon-user-delete',
text: 'Remove Employee',
disabled: true,
handler: function() {
editor.stopEditing();
var s = grid.getSelectionModel().getSelections();
for (var i = 0, r; r = s[i]; i++) {
store.remove(r);
}
}
}],
loadMask: {
msg: 'Loading...'
},
view: new Ext.grid.GroupingView({
forceFit: false,

// Return CSS class to apply to rows depending upon data values
getRowClass: function(record, index, rowParams, store) {
var a = record.get('ExVGRGrbPE');
var c = record.get('letlcYDymJ');
var d = record.get('DmdNRJTcuY');

if (c == 'true') {
return 'developer-inactive-row';
} else if (d == 'true') {
return 'developer-locked-row';
}
return '';
}
}),
selModel: new Ext.grid.RowSelectionModel({
singleSelect: true,
moveEditorOnEnter: false,
listeners: {
'beforerowselect': {
fn: function(selectionModel, rowIndex, keepExisting, record) {
return false;
}
},
'rowselect': {
fn: function(selectionModel, rowIndex, record) {
alert("In Ext.grid.RowSelectionModel.rowselect");
}
},
'rowdeselect': {
fn: function(selectionModel, rowIndex, record) {
alert("rowdeselect");
}
},
'selectionchange': {
fn: function(selectionModel) {
alert("selectionchange");
}
}
}
}),
store: new Ext.data.GroupingStore({
url: '/Coriolis/processor?app=KvtMeYFcHP&action=ZOQXePejCd',
autoLoad: true,
groupField: 'jpSObCirFB',
sortInfo: {
field: 'KHdVzQXMEL',
direction: 'ASC'
},
remoteSort: false,
reader: new Ext.data.XmlReader({
record: 'row',
id: 'id'
},
Ext.data.Record.create([{
name: 'DmdNRJTcuY',
type: 'boolean'
},
{
name: 'KHdVzQXMEL',
type: 'string'
},
{
name: 'ExVGRGrbPE',
type: 'boolean'
},
{
name: 'jpSObCirFB',
type: 'string'
},
{
name: 'XISQEGXJce',
type: 'string'
},
{
name: 'qHtuCnoRlh',
type: 'string'
},
{
name: 'KjrahnJgth',
type: 'date',
dateFormat: 'd/m/Y h:i:s A'
},
{
name: 'letlcYDymJ',
type: 'boolean'
},
{
name: 'YOrzhKnZwm',
type: 'string'
},
{
name: 'NSlIHhvskt',
type: 'string'
},
{
name: 'DAbdAoFewp',
type: 'string'
},
{
name: 'eHRfNomqDk',
type: 'string'
}])),
listeners: {
'add': {
fn: function(store, records, index) {}
},
'beforeload': {
fn: function(store, options) {}
},
'clear': {
fn: function(store) {}
},
'datachanged': {
fn: function(store) {}
},
'load': {
fn: function(store, records, options) {}
},
'loadexception': {
fn: function() {
alert('loadexception fired in EditorGridPanel.store');
}
},
'metachange': {
fn: function(store, meta) {}
},
'remove': {
fn: function(store, record, index) {}
},
'update': {
fn: function(store, record, operation) {}
}
}
}),
cm: new Ext.grid.ColumnModel({
columns: [
new Ext.grid.RowNumberer(),

new Ext.grid.Column({
id: 'sZtGpyuXyR',
menuDisabled: true,
width: 25,
align: 'center',
sortable: false,
resizable: true,
fixed: true,
editable: false,
header: 'M',
dataIndex: 'DmdNRJTcuY',
renderer: coriolis_boolean_renderer

})

,

new Ext.grid.Column({
id: 'qUCeMLRbGF',
width: 250,
resizable: true,
fixed: false,
header: 'Name',
dataIndex: 'KHdVzQXMEL',
renderer: coriolis_uppercase_renderer,
editor: new Ext.form.TextField({
id: 'yQjbgVFkzp',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'FfPNtTPIgl',
menuDisabled: true,
width: 80,
align: 'center',
sortable: false,
resizable: true,
fixed: true,
header: 'Modified',
dataIndex: 'ExVGRGrbPE',
renderer: coriolis_boolean_renderer

})

,

new Ext.grid.Column({
id: 'SCuYlJDZFS',
width: 250,
header: 'Stripe',
dataIndex: 'jpSObCirFB'

,
editor: new Ext.form.TextField({
id: 'MfwzDRFTOm',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'EDrJuUeafQ',
width: 250,
header: 'Default Display Option',
dataIndex: 'XISQEGXJce'

,
editor: new Ext.form.ComboBox({
id: 'DGKydYxlHS',
editable: false,
typeAhead: true,
triggerAction: 'all',
displayField: 'value',
mode: 'local',
store: new Ext.data.SimpleStore({
fields: ['value'],
data: [['INACTIVE_TYPE'], ['INACTIVE_TYPE']]
}),
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforequery': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeselect': {
fn: function(item, record, index) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'collapse': {
fn: function(field) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'expand': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'select': {
fn: function(field, record, index) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'txwUqyFVsj',
width: 150,
sortable: false,
editable: false,
header: 'Locked By',
dataIndex: 'qHtuCnoRlh'

})

,

new Ext.grid.Column({
id: 'OVEjqizksD',
width: 150,
sortable: false,
editable: false,
header: 'Locked Date',
dataIndex: 'KjrahnJgth'

})

,

new Ext.grid.Column({
id: 'qTdfnvJxgL',
menuDisabled: true,
width: 80,
align: 'center',
sortable: false,
resizable: true,
fixed: true,
header: 'Inactive',
dataIndex: 'letlcYDymJ',
renderer: coriolis_boolean_renderer,
editor: new Ext.form.Checkbox({
id: 'WVOxBcoVIj'
})

})

,

new Ext.grid.Column({
id: 'OdcFtvujVr',
width: 250,
sortable: false,
resizable: true,
header: 'Comments',
dataIndex: 'YOrzhKnZwm'

,
editor: new Ext.form.TextField({
id: 'PlQdqwnNjl',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'CiikXsYdQw',
width: 250,
header: 'Java Class',
dataIndex: 'NSlIHhvskt'

,
editor: new Ext.form.ComboBox({
id: 'GjwlCdMXNM',
editable: false,
typeAhead: true,
triggerAction: 'all',
displayField: 'value',
mode: 'local',
store: new Ext.data.SimpleStore({
fields: ['value'],
data: [['True'], ['False']]
}),
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforequery': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeselect': {
fn: function(item, record, index) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'collapse': {
fn: function(field) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'expand': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'select': {
fn: function(field, record, index) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'buKeNFBlfL',
width: 250,
header: 'Module',
dataIndex: 'DAbdAoFewp'

,
editor: new Ext.form.TextField({
id: 'qhOpcxjDTG',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'KvClluiPyQ',
width: 250,
header: 'Repository',
dataIndex: 'eHRfNomqDk',
renderer:

function renderer(value, metadata, record, rowIndex, colIndex, store) {
return Ext.util.Format.ellipsis(value, 25);
}

,
editor: new Ext.form.TextField({
id: 'EgxIHbFRiO',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

],
defaults: {
width: 90,
sortable: true,
menuDisabled: false
},
listeners: {
'columnmoved': {
fn: function(cm, oldIndex, newIndex) {}
},
'configchange': {
fn: function(cm) {}
},
'headerchange': {
fn: function(cm, columnIndex, newText) {}
},
'hiddenchange': {
fn: function(cm, columnIndex, hidden) {}
},
'widthchange': {
fn: function(cm, columnIndex, newWidth) {}
}
}
}),
listeners: {
'activate': {
fn: function(panel) {}
},
'add': {
fn: function(grid, component, index) {}
},
'afteredit': {
fn: function(event) {}
},
'afterlayout': {
fn: function(grid, layout) {}
},
'beforeadd': {
fn: function(grid, component, index) {}
},
'beforeclose': {
fn: function(panel) {}
},
'beforecollapse': {
fn: function(panel, animate) {}
},
'beforedestroy': {
fn: function(grid) {}
},
'beforeedit': {
fn: function(event) {
event.grid.getSelectionModel().lock();
}
},
'beforeexpand': {
fn: function(panel, animate) {}
},
'beforehide': {
fn: function(grid) {}
},
'beforeremove': {
fn: function(grid, component) {}
},
'beforerender': {
fn: function(grid) {}
},
'beforeshow': {
fn: function(grid) {}
},
'beforestaterestore': {
fn: function(grid, state) {}
},
'beforestatesave': {
fn: function(grid, state) {}
},
'bodyresize': {
fn: function(panel, width, height) {}
},
'bodyscroll': {
fn: function(scrollLeft, scrollTop) {}
},
'cellclick': {
fn: function(grid, rowIndex, columnIndex, event) {}
},
'cellcontextmenu': {
fn: function(grid, rowIndex, cellIndex) {}
},
'celldbclick': {
fn: function(grid, rowIndex, columnIndex, event) {}
},
'cellmousedown': {
fn: function(grid, rowIndex, columnIndex, event) {}
},
'click': {
fn: function(event) {}
},
'close': {
fn: function(panel) {}
},
'collapse': {
fn: function(panel) {}
},
'beforestatesave': {
fn: function() {}
},
'bodyresize': {
fn: function(panel, width, height) {}
},
'checkchange': {
fn: function(tree, checked) {}
},
'click': {
fn: function(node, event) {}
},
'close': {
fn: function(panel) {}
},
'collapse': {
fn: function(panel) {}
},
'columnmove': {
fn: function(oldIndex, newIndex) {}
},
'columnresize': {
fn: function(columnIndex, newSize) {}
},
'contextmenu': {
fn: function(node, event) {}
},
'dblclick': {
fn: function(event) {}
},
'deactivate': {
fn: function(panel) {}
},
'destroy': {
fn: function(grid) {}
},
'disable': {
fn: function(grid) {}
},
'enable': {
fn: function(grid) {}
},
'expand': {
fn: function(panel) {}
},
'headerclick': {
fn: function(grid, columnIndex, event) {}
},
'headercontextmenu': {
fn: function(grid, columnIndex, event) {}
},
'headerdblclick': {
fn: function(grid, columnIndex) {}
},
'headermousedown': {
fn: function(node) {}
},
'hide': {
fn: function(grid) {}
},
'iconchange': {
fn: function(panel, newIcon, oldIcon) {}
},
'keydown': {
fn: function(event) {}
},
'keypress': {
fn: function(event) {}
},
'mousedown': {
fn: function(event) {}
},
'mouseout': {
fn: function(event) {}
},
'mouseover': {
fn: function(event) {}
},
'mouseup': {
fn: function(event) {}
},
'move': {
fn: function(grid, x, y) {}
},
'remove': {
fn: function(grid, component) {}
},
'render': {
fn: function(grid) {}
},
'resize': {
fn: function(grid, adjWidth, adjHeight, rawWidth, rawHeight) {}
},
'rowclick': {
fn: function(grid, rowIndex, event) {}
},
'rowcontextmenu': {
fn: function(grid, rowIndex, event) {
alert('context menu');
event.stopEvent();
}
},
'rowdblclick': {
fn: function(grid, rowIndex, event) {}
},
'rowmousedown': {
fn: function(grid, rowIndex, event) {}
},
'show': {
fn: function(grid) {}
},
'sortchange': {
fn: function(grid, sortInfo) {}
},
'staterestore': {
fn: function(grid, state) {}
},
'statesave': {
fn: function(grid, state) {}
},
'titlechange': {
fn: function(panel, newTitle) {}
},
'validateedit': {
fn: function(object) {
alert("validateedit");
object.cancel = false;
}
}
}
})

]
})]
new Ext.grid.GridPanel({
id: 'xYGpZruFGS',
footer: false,
stripeRows: true,
clicksToEdit: 2,
autoScroll: true,
serverSorting: false,
autoWidth: true,
autoHeight: true,
border: false,
header: false,
plugins: [new Ext.ux.RowEditor({
saveText: 'Update'
}), new Ext.ux.grid.GridFilters({
filters: [{
type: 'boolean',
dataIndex: 'DmdNRJTcuY'
},
{
type: 'string',
dataIndex: 'KHdVzQXMEL'
},
{
type: 'boolean',
dataIndex: 'ExVGRGrbPE'
},
{
type: 'string',
dataIndex: 'jpSObCirFB'
},
{
type: 'string',
dataIndex: 'XISQEGXJce'
},
{
type: 'string',
dataIndex: 'qHtuCnoRlh'
},
{
type: 'date',
dataIndex: 'KjrahnJgth'
},
{
type: 'boolean',
dataIndex: 'letlcYDymJ'
},
{
type: 'string',
dataIndex: 'YOrzhKnZwm'
},
{
type: 'string',
dataIndex: 'NSlIHhvskt'
},
{
type: 'string',
dataIndex: 'DAbdAoFewp'
},
{
type: 'string',
dataIndex: 'eHRfNomqDk'
}]
})],
tbar: [
new Ext.Toolbar.Spacer({
width: 5
}), new Ext.Panel({
width: 23,
height: 25,
border: false,
bodyStyle: 'background-color: transparent',
style: 'padding-top: 5px',
html: '<img src="images/eo.png">'
}), new Ext.Toolbar.TextItem({
text: 'Application List'
}), new Ext.Toolbar.Fill({}), new Ext.Button({
text: 'Toggle',
iconCls: 'LOfpxEQsaQ',
menu: new Ext.menu.Menu({
items: []
})
}), new Ext.Button({
text: 'Actions',
iconCls: 'LOfpxEQsaQ',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Refresh',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getStore().reload();
}

}), new Ext.menu.Item({
text: 'Edit',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Undo Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Redo Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'New Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Copy Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Deep Copy Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Delete Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'Compare Record',
iconCls: 'DxbgeDCKgQ',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

})]
})
}), new Ext.menu.Item({
text: 'View',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Enterprise Views',
handler:

function onItemClick(item, event) {
Ext.Msg.alert('Feature not yet implemented');
}

}), new Ext.menu.Item({
text: 'Displayed Columns...',
handler:

function onItemClick(item, event) {
Ext.Msg.alert('Feature not yet implemented');
}

}), new Ext.menu.Item({
text: 'Freeze Columns...',
handler:

function onItemClick(item, event) {
Ext.Msg.alert('Feature not yet implemented');
}

})]
})
}), new Ext.menu.Item({
text: 'Go',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Previous Record',
handler:

function onItemClick(item, event) {

Ext.getCmp('xYGpZruFGS').getSelectionModel().selectPrevious();
}

}), new Ext.menu.Item({
text: 'Next Record',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getSelectionModel().selectNext();
}

}), new Ext.menu.Item({
text: 'First Record',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getSelectionModel().selectFirstRow();
}

}), new Ext.menu.Item({
text: 'Last Record',
handler:

function onItemClick(item, event) {
Ext.getCmp('xYGpZruFGS').getSelectionModel().selectLastRow();
}

})]
})
}), new Ext.menu.Item({
text: 'Export',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'To XML',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'To CSV',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

})]
})
}), new Ext.menu.Item({
text: 'Help',
menu: new Ext.menu.Menu({
items: [new Ext.menu.Item({
text: 'Help...'
}), new Ext.menu.Item({
text: 'About Record...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Component...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Perspective...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Dimension...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

}), new Ext.menu.Item({
text: 'About Application...',
handler:

function onItemClick(item, event) {
Ext.Msg.show({
title: 'Coriolis 5 IAP',
msg: 'Feature does not exist.',
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.WARNING
});
}

})]
})
})]
})
}), new Ext.Button({
text: 'Views',
iconCls: 'LOfpxEQsaQ',
menu: new Ext.menu.Menu({})
})],
bbar: [{
iconCls: 'icon-user-add',
text: 'Add Employee',
handler: function() {
var e = new Employee({
name: 'New Guy',
email: '[email protected]',
start: (new Date()).clearTime(),
salary: 50000,
active: true
});
editor.stopEditing();
store.insert(0, e);
grid.getView().refresh();
grid.getSelectionModel().selectRow(0);
editor.startEditing(0);
}
},
{
ref: '../removeBtn',
iconCls: 'icon-user-delete',
text: 'Remove Employee',
disabled: true,
handler: function() {
editor.stopEditing();
var s = grid.getSelectionModel().getSelections();
for (var i = 0, r; r = s[i]; i++) {
store.remove(r);
}
}
}],
loadMask: {
msg: 'Loading...'
},
view: new Ext.grid.GroupingView({
forceFit: false,

// Return CSS class to apply to rows depending upon data values
getRowClass: function(record, index, rowParams, store) {
var a = record.get('ExVGRGrbPE');
var c = record.get('letlcYDymJ');
var d = record.get('DmdNRJTcuY');

if (c == 'true') {
return 'developer-inactive-row';
} else if (d == 'true') {
return 'developer-locked-row';
}
return '';
}
}),
selModel: new Ext.grid.RowSelectionModel({
singleSelect: true,
moveEditorOnEnter: false,
listeners: {
'beforerowselect': {
fn: function(selectionModel, rowIndex, keepExisting, record) {
return false;
}
},
'rowselect': {
fn: function(selectionModel, rowIndex, record) {
alert("In Ext.grid.RowSelectionModel.rowselect");
}
},
'rowdeselect': {
fn: function(selectionModel, rowIndex, record) {
alert("rowdeselect");
}
},
'selectionchange': {
fn: function(selectionModel) {
alert("selectionchange");
}
}
}
}),
store: new Ext.data.GroupingStore({
url: '/Coriolis/processor?app=KvtMeYFcHP&action=ZOQXePejCd',
autoLoad: true,
groupField: 'jpSObCirFB',
sortInfo: {
field: 'KHdVzQXMEL',
direction: 'ASC'
},
remoteSort: false,
reader: new Ext.data.XmlReader({
record: 'row',
id: 'id'
},
Ext.data.Record.create([{
name: 'DmdNRJTcuY',
type: 'boolean'
},
{
name: 'KHdVzQXMEL',
type: 'string'
},
{
name: 'ExVGRGrbPE',
type: 'boolean'
},
{
name: 'jpSObCirFB',
type: 'string'
},
{
name: 'XISQEGXJce',
type: 'string'
},
{
name: 'qHtuCnoRlh',
type: 'string'
},
{
name: 'KjrahnJgth',
type: 'date',
dateFormat: 'd/m/Y h:i:s A'
},
{
name: 'letlcYDymJ',
type: 'boolean'
},
{
name: 'YOrzhKnZwm',
type: 'string'
},
{
name: 'NSlIHhvskt',
type: 'string'
},
{
name: 'DAbdAoFewp',
type: 'string'
},
{
name: 'eHRfNomqDk',
type: 'string'
}])),
listeners: {
'add': {
fn: function(store, records, index) {}
},
'beforeload': {
fn: function(store, options) {}
},
'clear': {
fn: function(store) {}
},
'datachanged': {
fn: function(store) {}
},
'load': {
fn: function(store, records, options) {}
},
'loadexception': {
fn: function() {
alert('loadexception fired in EditorGridPanel.store');
}
},
'metachange': {
fn: function(store, meta) {}
},
'remove': {
fn: function(store, record, index) {}
},
'update': {
fn: function(store, record, operation) {}
}
}
}),
cm: new Ext.grid.ColumnModel({
columns: [
new Ext.grid.RowNumberer(),

new Ext.grid.Column({
id: 'sZtGpyuXyR',
menuDisabled: true,
width: 25,
align: 'center',
sortable: false,
resizable: true,
fixed: true,
editable: false,
header: 'M',
dataIndex: 'DmdNRJTcuY',
renderer: coriolis_boolean_renderer

})

,

new Ext.grid.Column({
id: 'qUCeMLRbGF',
width: 250,
resizable: true,
fixed: false,
header: 'Name',
dataIndex: 'KHdVzQXMEL',
renderer: coriolis_uppercase_renderer,
editor: new Ext.form.TextField({
id: 'yQjbgVFkzp',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'FfPNtTPIgl',
menuDisabled: true,
width: 80,
align: 'center',
sortable: false,
resizable: true,
fixed: true,
header: 'Modified',
dataIndex: 'ExVGRGrbPE',
renderer: coriolis_boolean_renderer

})

,

new Ext.grid.Column({
id: 'SCuYlJDZFS',
width: 250,
header: 'Stripe',
dataIndex: 'jpSObCirFB'

,
editor: new Ext.form.TextField({
id: 'MfwzDRFTOm',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'EDrJuUeafQ',
width: 250,
header: 'Default Display Option',
dataIndex: 'XISQEGXJce'

,
editor: new Ext.form.ComboBox({
id: 'DGKydYxlHS',
editable: false,
typeAhead: true,
triggerAction: 'all',
displayField: 'value',
mode: 'local',
store: new Ext.data.SimpleStore({
fields: ['value'],
data: [['INACTIVE_TYPE'], ['INACTIVE_TYPE']]
}),
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforequery': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeselect': {
fn: function(item, record, index) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'collapse': {
fn: function(field) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'expand': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'select': {
fn: function(field, record, index) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'txwUqyFVsj',
width: 150,
sortable: false,
editable: false,
header: 'Locked By',
dataIndex: 'qHtuCnoRlh'

})

,

new Ext.grid.Column({
id: 'OVEjqizksD',
width: 150,
sortable: false,
editable: false,
header: 'Locked Date',
dataIndex: 'KjrahnJgth'

})

,

new Ext.grid.Column({
id: 'qTdfnvJxgL',
menuDisabled: true,
width: 80,
align: 'center',
sortable: false,
resizable: true,
fixed: true,
header: 'Inactive',
dataIndex: 'letlcYDymJ',
renderer: coriolis_boolean_renderer,
editor: new Ext.form.Checkbox({
id: 'WVOxBcoVIj'
})

})

,

new Ext.grid.Column({
id: 'OdcFtvujVr',
width: 250,
sortable: false,
resizable: true,
header: 'Comments',
dataIndex: 'YOrzhKnZwm'

,
editor: new Ext.form.TextField({
id: 'PlQdqwnNjl',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'CiikXsYdQw',
width: 250,
header: 'Java Class',
dataIndex: 'NSlIHhvskt'

,
editor: new Ext.form.ComboBox({
id: 'GjwlCdMXNM',
editable: false,
typeAhead: true,
triggerAction: 'all',
displayField: 'value',
mode: 'local',
store: new Ext.data.SimpleStore({
fields: ['value'],
data: [['True'], ['False']]
}),
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforequery': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeselect': {
fn: function(item, record, index) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'collapse': {
fn: function(field) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'expand': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'select': {
fn: function(field, record, index) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'buKeNFBlfL',
width: 250,
header: 'Module',
dataIndex: 'DAbdAoFewp'

,
editor: new Ext.form.TextField({
id: 'qhOpcxjDTG',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

,

new Ext.grid.Column({
id: 'KvClluiPyQ',
width: 250,
header: 'Repository',
dataIndex: 'eHRfNomqDk',
renderer:

function renderer(value, metadata, record, rowIndex, colIndex, store) {
return Ext.util.Format.ellipsis(value, 25);
}

,
editor: new Ext.form.TextField({
id: 'EgxIHbFRiO',
listeners: {
'autosize': {
fn: function(item, width) {}
},
'beforedestroy': {
fn: function(item) {}
},
'beforehide': {
fn: function(item) {}
},
'beforerender': {
fn: function(item) {}
},
'beforeshow': {
fn: function(item) {}
},
'beforestaterestore': {
fn: function(item, state) {}
},
'beforestatesave': {
fn: function(item, state) {}
},
'blur': {
fn: function(field) {}
},
'change': {
fn: function(field, newValue, oldValue) {}
},
'destroy': {
fn: function(item) {}
},
'disable': {
fn: function(item) {}
},
'enable': {
fn: function(item) {}
},
'focus': {
fn: function(field) {}
},
'hide': {
fn: function(item) {}
},
'invalid': {
fn: function(field, msg) {}
},
'keydown': {
fn: function(field, event) {}
},
'keypress': {
fn: function(field, event) {}
},
'keyup': {
fn: function(field, event) {}
},
'move': {
fn: function(item, x, y) {}
},
'render': {
fn: function(item) {}
},
'resize': {
fn: function(item, adjWidth, adjHeight, rawWidth) {}
},
'show': {
fn: function(item) {}
},
'specialkey': {
fn: function(field, event) {}
},
'staterestore': {
fn: function(item, state) {}
},
'statesave': {
fn: function(item, state) {}
},
'valid': {
fn: function(field) {}
}
}
})

})

],
defaults: {
width: 90,
sortable: true,
menuDisabled: false
},
listeners: {
'columnmoved': {
fn: function(cm, oldIndex, newIndex) {}
},
'configchange': {
fn: function(cm) {}
},
'headerchange': {
fn: function(cm, columnIndex, newText) {}
},
'hiddenchange': {
fn: function(cm, columnIndex, hidden) {}
},
'widthchange': {
fn: function(cm, columnIndex, newWidth) {}
}
}
}),
listeners: {
'activate': {
fn: function(panel) {}
},
'add': {
fn: function(grid, component, index) {}
},
'afteredit': {
fn: function(event) {}
},
'afterlayout': {
fn: function(grid, layout) {}
},
'beforeadd': {
fn: function(grid, component, index) {}
},
'beforeclose': {
fn: function(panel) {}
},
'beforecollapse': {
fn: function(panel, animate) {}
},
'beforedestroy': {
fn: function(grid) {}
},
'beforeedit': {
fn: function(event) {
event.grid.getSelectionModel().lock();
}
},
'beforeexpand': {
fn: function(panel, animate) {}
},
'beforehide': {
fn: function(grid) {}
},
'beforeremove': {
fn: function(grid, component) {}
},
'beforerender': {
fn: function(grid) {}
},
'beforeshow': {
fn: function(grid) {}
},
'beforestaterestore': {
fn: function(grid, state) {}
},
'beforestatesave': {
fn: function(grid, state) {}
},
'bodyresize': {
fn: function(panel, width, height) {}
},
'bodyscroll': {
fn: function(scrollLeft, scrollTop) {}
},
'cellclick': {
fn: function(grid, rowIndex, columnIndex, event) {}
},
'cellcontextmenu': {
fn: function(grid, rowIndex, cellIndex) {}
},
'celldbclick': {
fn: function(grid, rowIndex, columnIndex, event) {}
},
'cellmousedown': {
fn: function(grid, rowIndex, columnIndex, event) {}
},
'click': {
fn: function(event) {}
},
'close': {
fn: function(panel) {}
},
'collapse': {
fn: function(panel) {}
},
'beforestatesave': {
fn: function() {}
},
'bodyresize': {
fn: function(panel, width, height) {}
},
'checkchange': {
fn: function(tree, checked) {}
},
'click': {
fn: function(node, event) {}
},
'close': {
fn: function(panel) {}
},
'collapse': {
fn: function(panel) {}
},
'columnmove': {
fn: function(oldIndex, newIndex) {}
},
'columnresize': {
fn: function(columnIndex, newSize) {}
},
'contextmenu': {
fn: function(node, event) {}
},
'dblclick': {
fn: function(event) {}
},
'deactivate': {
fn: function(panel) {}
},
'destroy': {
fn: function(grid) {}
},
'disable': {
fn: function(grid) {}
},
'enable': {
fn: function(grid) {}
},
'expand': {
fn: function(panel) {}
},
'headerclick': {
fn: function(grid, columnIndex, event) {}
},
'headercontextmenu': {
fn: function(grid, columnIndex, event) {}
},
'headerdblclick': {
fn: function(grid, columnIndex) {}
},
'headermousedown': {
fn: function(node) {}
},
'hide': {
fn: function(grid) {}
},
'iconchange': {
fn: function(panel, newIcon, oldIcon) {}
},
'keydown': {
fn: function(event) {}
},
'keypress': {
fn: function(event) {}
},
'mousedown': {
fn: function(event) {}
},
'mouseout': {
fn: function(event) {}
},
'mouseover': {
fn: function(event) {}
},
'mouseup': {
fn: function(event) {}
},
'move': {
fn: function(grid, x, y) {}
},
'remove': {
fn: function(grid, component) {}
},
'render': {
fn: function(grid) {}
},
'resize': {
fn: function(grid, adjWidth, adjHeight, rawWidth, rawHeight) {}
},
'rowclick': {
fn: function(grid, rowIndex, event) {}
},
'rowcontextmenu': {
fn: function(grid, rowIndex, event) {
alert('context menu');
event.stopEvent();
}
},
'rowdblclick': {
fn: function(grid, rowIndex, event) {}
},
'rowmousedown': {
fn: function(grid, rowIndex, event) {}
},
'show': {
fn: function(grid) {}
},
'sortchange': {
fn: function(grid, sortInfo) {}
},
'staterestore': {
fn: function(grid, state) {}
},
'statesave': {
fn: function(grid, state) {}
},
'titlechange': {
fn: function(panel, newTitle) {}
},
'validateedit': {
fn: function(object) {
alert("validateedit");
object.cancel = false;
}
}
}
})

]
})

brasmouk
12 Jun 2009, 8:26 AM
You must change rowSelectorDepth to the view

look at this :
http://www.extjs.com/forum/showthread.php?t=70982

coriolis
12 Jun 2009, 11:01 AM
The rowSelectorDepth is set to 10 as a default. What should it be?

Thanks

coriolis
27 Jun 2009, 3:47 PM
Oddly however, if I double click I go into editor mode which works fine.

Weird!

mjlecomte
28 Jun 2009, 3:00 PM
Why post so much code? Your question is about selecting rows is it not? Wouldn't a grid with 2 columns and 2 or 3 rows suffice for your proof of concept? You have scared off most valuable help from simply posting too much code. Strip your code down to the absolute bare essentials to get your issue resolved.

mjlecomte
28 Jun 2009, 3:01 PM
P.S. Anything more than like 30 lines of code is more than you need for your question.

coriolis
28 Jun 2009, 5:14 PM
Thanks for the response. I figured out what the problem is. The beforerowselect event handler is always returning false. BAD!

Thanks for the help