hi,
I am using PivotGrid on asp.net mvc, i wanna get value of rows and column(row and headers) value onCellClick how can i achieve this ???
i am attaching a picture what i wanna achieve. it will show clearly
Hello,
You can look into this thread on how to obtain column information from the grid:
http://es.infragistics.com/community/forums/t/85729.aspx
i am thankful to Martin Pavlov Infragistics, Inc. his reply work for me but just one thing i need it to complete
i need parent and child all column name of clicked cell can anyone please give me solution :)
$(function () { $("#pivotGrid").igPivotGrid("grid").element.on("iggridcellclick", function (evt, ui) { var colHeader, rowHeader, cellValue; colHeader = ui.owner.columnByKey(ui.colKey).headerText; rowHeader = ui.row.find(".ui-igpivotgrid-header .ui-iggrid-headertext").text(); cellValue = $(ui.cellElement).text(); }); });
Hello Amin,
You can look into this forum thread on obtaining data from the pivot grid: http://es.infragistics.com/community/forums/t/85729.aspx
You could obtain the igGrid instance of the pivot grid using the grid method and then handling the cellClick event and applying the appropriate logic within that event.