ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: kavyasetty on December 17, 2013, 05:41:21 pm
-
hi,
I am using getcell method and passing the row & col index. when i try to alert the result it shows Object object. But i need the value inside the cell . is it possible to get the value ??
i have tried .val() , it dint work.
-
please help
-
use .text() rather than .val()
-
i used .text() it is just popping empty when i alert rather than the text inside the cell.
var obj=$( "#fragment-5" ).pqGrid( "getCell", {rowIndx: rowNo,colIndx:1} );
alert(obj.text())
this is giving me a empty alert box
-
http://jsfiddle.net/QS847/
-
thanks :) it worked.
if i add dataIndx to colModel i see data missing in that columns with data indx
for ex:{title:"*EMPLOYEE ID",width:100,editable: false,dataIndx:"empid"}
in the grid the employee id column no cells have value.. all the cells in this column are empty.
if i remove the dataindx it is working fine that the cells in the columns are having data