Please Try.
ondblClickRow: function(rowid) {
var cont = $('#grid').getCell(rowid, 'MyCol');
var val = getCellValue(cont);
}
var cont = $('#grid').getCell(rowid, 'MyCol');
var val = getCellValue(cont);
}
Atau Dengan Script ini :
onClickButton:function(){
var gsr = jQuery("#dies_grid").jqGrid('getGridParam','selrow');
if(gsr){
//data from grid insert into form
jQuery("#dies_grid").jqGrid('GridToForm',gsr,"#dies_form");
var grid = $('#dies_grid');
var myCellData = grid.jqGrid('getCell', gsr, 'SD_SeriesNo');
myCellData=parseInt(myCellData);
alert(myCellData);
} else {
alert("Please select Row")
}
}
No comments:
Post a Comment