Forum
18:41
26/07/2011
$("#searchGrid").jqGrid({
datatype: "local",
mtype : "post",
postData: '',
colNames:['TrackingId', 'Exceptions', 'Photos', 'Date'],
colModel:[
{name:'trackingId',index:'trackingId', width:80, align:'center', formatter: formatTrackingIdCol},
{name:'exceptions',index:'exceptions', width:60, align:'center', formatter:formatExceptionCol},
{name:'photos',index:'photos', width:60, align:'center'},
{name:'creationDate',index:'creationDate', width:80, align:'center'}
],
rowNum:20,
//rowList:[10,20,30],
pager: '#searchPager',
sortname: 'carrier',
//autowidth: true,
shrinkToFit: false,
height: "60%",
width: $("div.content").width() - 20,
viewrecords: true,
sortorder: "asc",
multiselect: false,
jsonReader: { repeatitems : false},
onCellSelect: cellSelected,
loadComplete: function(){
selectedRows = {};
},
gridComplete: function() {
$('.jqgrow').mouseover(function(e) {
var selectedRows = $("#searchGrid").jqGrid('getGridParam', 'selarrrow');
var selectedIds = [];
for(var i in selectedRows){
selectedIds.push($("#searchGrid").jqGrid('getCell', selectedRows[i], 'trackingId'));
}
}
);
}
});
I've above data model in displayed in jQGrid, now, I want to display a jQDialog box whenever photos column is clicked, I need the tracking id column value of the row, for which photos column was clicked.
Please tell how to read value of all cell of the current selected row??? Like I want to read trackingId in case of any of the column is clicked...
Thanks in advance...
Most Users Ever Online: 715
Currently Online:
73 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66