onCellSelect: function(id, col_index, cellcontent, e){
var col_names = jQuery("#mygrid").jqGrid("getGridParam", "colModel");
var selectedcolName = col_names[col_index].name;
if(selectedcolName != 'intuceoInsight'){
$("#single_pattern").show();
var rowData = $("#mygrid").jqGrid('getRowData', id);
selectedRowId = id;
gridcomplete
==========
gridComplete: function ()
{
var ids = jQuery("#list").jqGrid('getDataIDs');
alert(ids);
for(var i=1;i<=ids.length;i++)
{
var rowId = ids[i];
// var rowData = jQuery('#list').jqGrid ('getRowData', rowId);
var cont = jQuery('#list').getCell(rowId, 'SYS'); //SYS is my colNames
alert(cont);
}
},
loadcomplete
=========
loadComplete: function() {
//oldGrid = $('#mygrid tbody').html();
if ($('#mygrid').getGridParam('records') === 0) {
$('#mygrid tbody').find(".jqgfirstrow").parent().
append("<tr id='empty_row'><td colspan='9' class='no_rec'>No
insights according to the selected attributes, please select another
attributes to fetch rules</td></tr>");
}
else if($('#mygrid tr').length <= 1) {
$('#mygrid tbody').find(".jqgfirstrow")
.parent().append("<tr id='empty_row'><td colspan='9' class='no_rec'>No insights
according to the selected attributes, please select another attributes to fetch
rules</td></tr>");
}
else{
$('#empty_row').remove();
if(!$("#single_pattern").is(':hidden'))
{
$('#mygrid').jqGrid('setSelection',
$("#id_rule").val());
}
No comments:
Post a Comment