How to get first cell data of hierachy Excel kendo grid

3 posts, 0 answers
  1. Håkan
    Håkan avatar
    29 posts
    Member since:
    Apr 2012

    Posted 16 Oct 2013 Link to this post

    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. nikobellic
    nikobellic avatar
    46 posts
    Member since:
    Feb 2013

    Posted 16 Oct 2013 Link to this post

    It should be possible.
    Here's a demo that does it.

    Hope it helps.
  3. Kendo UI is VS 2017 Ready
  4. Håkan
    Håkan avatar
    29 posts
    Member since:
    Apr 2012

    Posted 16 Oct 2013 Link to this post

    Hi nikobellic,

    Its worked.
    Thanks a lot..
Back to Top