1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Kendo Angular - How to get data on the doubleClick event on Kendo Grid?

Discussão em 'Angular' iniciado por Federico, Setembro 25, 2024.

  1. Federico

    Federico Guest

    How to get data on the doubleClick event on Kendo Grid?

    I would like to get the same object that I fetch at the selected event, which would be dataitem in the position of IndexRowSelected

    Html:

    <kendo-grid
    #myGrid
    [data]="gridData"
    [selectable]="true"
    (selectionChange)="onSelection($event)"
    (dblclick)="doubleClickHandler(myGrid, $event)">
    </kendo-grid>


    TS:

    onSelection(event){
    //dataItem at row selected
    event.selectedRows[0].dataItem
    }

    doubleClickHandler(grid, event){

    //get dataItem like onSelection function

    }


    dataItem object example: [{ "id":0, "name":"Chai", "category": "Beverages", "price": "18", "instock": "39"

    }] [​IMG] thanks,

    Federico

    Continue reading...

Compartilhe esta Página