-
7 Feb 2013 1:10 AM #1
Unanswered: Change selection only on specific column
Unanswered: Change selection only on specific column
Lets say we have a grid panel with column A and column B. What i want to do is the selection to be changed only when the user selects the part of the row that is under column A. Is this possible ?
-
7 Feb 2013 1:17 AM #2
It is:
Code:getTargetFromEvent: function(event) { var me = this, view = me.view; var cell = event.getTarget(view.cellSelector); if (this.targetCell !== cell) { view.fireEvent('cellchange', this.targetCell, cell, event); this.targetCell = cell; } if (cell) { var row = view.findItemByChild(cell), columnIndex = cell.cellIndex; if (row && Ext.isDefined(columnIndex)) { return { node: cell, record: view.getRecord(row), fieldName: me.columns[columnIndex].dataIndex }; } } },


Reply With Quote