This is a migrated thread and some comments may be shown as answers.

How to get first cell data of hierachy Excel kendo grid

2 Answers 8 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Håkan
Top achievements
Rank 1
Håkan asked on 16 Oct 2013, 04:48 PM
Hi,
I m create a kendo Excel grid with hierarchy. And last column I added a action button.
I need to get first column data of the grid when clicking that edit button.

This is my try. But its not working.

function On Click(e) {
        e.preventDefault();
        var element = $(e.target);
        var grid = element.closest("[data-role=grid]").data("kendoGrid");
        var dataItem = grid.dataItem(element.closest("tr"));

        alert(dataItem.ProductID);
       
    }

Thanking

2 Answers, 1 is accepted

Sort by
0
Ignacio
Top achievements
Rank 1
answered on 16 Oct 2013, 06:28 PM
It should be possible.
Here's a demo that does it.

Hope it helps.
0
Håkan
Top achievements
Rank 1
answered on 17 Oct 2013, 03:33 AM
Hi nikobellic,

Its worked.
Thanks a lot..
Tags
Grid
Asked by
Håkan
Top achievements
Rank 1
Answers by
Ignacio
Top achievements
Rank 1
Håkan
Top achievements
Rank 1
Share this question
or