PDA

View Full Version : How to blur a GridView/GridPanel



neurodon
18 Oct 2012, 11:10 AM
I have a GridPanel that opens a tab on itemclick. I want to deselect and defocus all the rows on the originating component.

I can deselect the rows, but the original row remains focused. How do I "blur" the control so it removes all the focus classes?

Thanks!

neurodon
18 Oct 2012, 12:44 PM
I figured it out. There is an undocumented property inherited from Ext.view.Table called 'focusedItemCls'.



viewConfig: {
loadMask:false,
focusedItemCls:'',
getRowClass: function(record, rowIndex, rowParams, store){
if(this.highlightObjectID!=undefined) {
return record.get("objectid")==this.highlightObjectID ? "object-selected" : "";
}
return "";
}
},