Home | Mail | Syndicate

welcome to my space

10 March, 2010 |

how add a event on one column ?

  • I try add to add an event when i doubleclick on only one column of my grid.

    I guess it's with listener in ColumnModel?

    var cm = new Ext.grid.ColumnModel([{header: "S", width: 25, sortable: true, dataIndex: 's'},
    {header: "F/C", width: 25, sortable: true, dataIndex: 'fc'},
    {header: "Code", listeners: "....",width: 70, sortable: true, dataIndex: 'code'},
    {id:'libelle',header: "Libellé", width: 200, sortable: true, dataIndex: 'libelle'}


    But i don't know how i can write it.

    i know for add the listener on a grid i just need do grid.addListener("click", functionJS);

    but how can i add a event on the doubleclick of one only column?


  • the grid onClick (and i assume doubleclick) event has access to what row and column were clicked on, so you can easily enough just use that and ignore clicks that you do not care about.







  • #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 how add a event on one column ? , Please add it free.
    PNNL, SGI Think Big Danes Launch Europe's First 24-Hour Internet TV Station