Hybrid View
-
19 Dec 2012 6:23 AM #1
Ext: 4.2.0 Beta - Locked column grid and edit events
Ext: 4.2.0 Beta - Locked column grid and edit events
Hi,
Here is an issue noticed in ExtJS 4.1.1 and ExtJS 4.2 Beta. I have a grid with row editing plugin and it was working perfectly with "edit", "beforeedit" events. Now I want to lock only one column in grid which is not editable. I have set the property "locked":true for that particular column but now both edit/beforeedit not fired when editing anyone of the row. Is this a Extjs specific issue or any other work around for this.
Code:
.........................some code here ...........................selModel: Ext.create('Ext.selection.RowModel', { mode: 'MULTI' }), plugins: [ Ext.create('Ext.grid.plugin.RowEditing', { }) ], columns: [ { xtype: 'gridcolumn', minWidth: 100, dataIndex: 'USER_ID', flex: 1, locked: true, text: 'Username' }, { xtype: 'gridcolumn', hidden: true, dataIndex: 'ADMIN', text: 'User Type' }, { xtype: 'gridcolumn', minWidth: 120, dataIndex: 'LNAME', flex: 1, text: 'Last Name', field: { xtype: 'textfield', allowBlank: false, blankText: 'Please enter a last name' } },.........................some code here ...........................
And my event handler is
Code:
Ext.getCmp("mygrid").on("edit",function(){//This event was fire before console.info("Editing");});Ext.getCmp("mygrid").on("beforeedit",function(){//This event was fire before console.info("Before Editing");});
Kindly look into this and advice if there is any resolution or work around. If not please include it in the list of bugs.
Thank you
-
31 Dec 2012 2:14 PM #2
Documented as EXTJSIV-4875
Documented as EXTJSIV-4875
I think the issue is documented as EXTJSIV-4875.
http://www.sencha.com/forum/showthre...643#post923643
If there are any updates on its resolution please provide them.
-
3 Jan 2013 4:26 AM #3
The "grid" is no longer a grid.
It is a layout: 'hbox' Container which contains 2 grids side by side.
Those two grids fire their edit events normally.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
3 Jan 2013 1:15 PM #4
@animal are you suggesting there is no issue at all ?
@animal are you suggesting there is no issue at all ?
?
-
4 Jan 2013 12:37 AM #5
Possibly we should relay the events from the child grids.
But there is a workaround.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
15 Jan 2013 5:07 AM #6
hi, do you mind to share what is the workaround? will really appreaciate it.

-
24 Feb 2013 12:37 PM #7
-
26 Feb 2013 2:31 AM #8
for me, the work around is to add the listener to the 'grid' isntead of the particular component.
If i'm not mistaken, locked column will separate the grid into 2 grids acutally, 1 with locked column and the other with the rest of the columns. so , you can just add the listener to the grid object you found on the page, and you might can add some code to check for the grid column ID or name later.
example , in controller
init : function() {
this.control({
'grid' : {
edit : function() {
//you code
}
}
});
}
-
18 Jan 2013 7:07 PM #9
Thanks for the report! I have opened a bug in our bug tracker.
-
24 Jan 2013 7:06 AM #10
can you provide the workaround ?
can you provide the workaround ?
Animal,
Can you post the workaround ?
You found a bug! We've classified it as
EXTJSIV-8268
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote