Search code examples
jqueryjquery-uiwijmo

Wijmo Grid How to get a cell id


I'm using the wijmo grid. Within the grid if a user click on a cell I want to know the id field is.

i.e. if the header details was id, name, surname, dob

When they click on surname I need to be able to retrieve the id. Bit of a rubbish example, but I also need to use selectionMode: "singleCell",

So I don't want to select the full row just one cell, but to be able to retrieve the other cell information within that row

Any Ideas?


Solution

  • In the end I found this, so I'll use a split function to get the data I need.

    function onSelectionChanged() {
        var dataItem = $("#datatable table").wijgrid('currentCell').row().data;
    //     alert(dataItem);