grid row select event

Filed Under mercialleasing.com |

  • In my application, in one of the columns of the grid, i am displaying a link that takes user to a different application. However, when i click on the link the onclick event on the link does not get called. Only rowselect event of rowselectionmodel gets called. i am using rowselect event to expand the row.

    How do I capture click event on the link before row select?


  • If you're talking about clicking on an item in a column of a grid, you can add this:

    grid.on({'celldblclick': {scope: this, fn: gridRowClickListener}});


    /**
    * Grid Row Clicked.
    */
    var gridRowClickListener =function(theGrid, rowIndex, columnIndex, event) {
    // only one item will be considered selected here.
    var rows = sm.getSelections();
    // Check column, execute link, ETC
    };


  • hi,

    thanks for the reply.

    i solved this by overriding handlemousedown event of rowselectionmodel


  • You will need to check if the link was clicked in your existing listeners. See http://rowactions.extjs.eu source, onClick function to get some ideas of how it could be done.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about grid row select event , Please add it free.

    Comments