Archive

Posts Tagged ‘cell click’

ExtJS4 Grid Cell click event

February 13th, 2013 No comments

If you need to Grid object react by clicking on a specific cell, not the entire row, this post is for you. It was first implemented into the ExtJS 3. On this occasion used the index of the column, can not use the name of the column used for the header.

Example of adding events would be:

	
listeners: {
    cellclick: function(gridView,htmlElement,columnIndex,dataRecord)
    {
        if(columnIndex == 3) {
            // Here insert the code that will be executed
            // when you click on the 4th column in the Grid object
        }
    }
}
Categories: JavaScript Tags: , ,