Hi all,
I have 5 columns like this
columnModel = [
{ title: "Claim Number", width: 100, dataIndx: "ClaimNumber" },
{ title: "Injured Worker's Name", width: 100, dataIndx: "WorkerName" },
{ title: "Date of Injury", width: 100, dataIndx: "InjuryDate" },
{ title: "Policy Number", width: 100, dataIndx: "PolicyNo" },
{ title: "", width: gridWidth / 100 * 10, sortable: false, resizable: false, align: "center", render: ShowDetail }
];
var ShowDetail = function (ui) {
var rowData = ui.rowData;
var detail = '<a href="/Claim/ClaimDetails.aspx?claimNumber='
+ encodeURIComponent(rowData.ClaimNumber)
+ '"><span class="link">Detail</span></a>';
return detail;
}
and I use rowSelect event to load another grid.
claimGridObj = {
colModel: columnModel,
rowSelect: function (event, ui) {
var rowData = ui.data[ui.rowIndx];
LoadClaimHistoryGrid(rowData.ClaimNumber);
}
};
When user clicks on Detail column, it always call rowSelect event. So how to know which column selected in rowSelect event to prevent LoadClaimHistoryGrid when user clicks Detail column?
Thanks and regards