this is the script i edited how can i call another direct method in second method(here both calls same function)
<script type="text/javascript">
var employeeDetailsRender = function () {
return '<img class="imgEdit" ext:qtip="Click to view/edit additional details" style="cursor:pointer;" src="vcard_edit.png" />';
};
var employeeDetailsRender1 = function() {
return '<img class="imgEdit1" ext:qtip="Click to view/edit additional details" style="cursor:pointer;" src="vcard_edit.png" />';
};
var cellClick = function(grid, rowIndex, columnIndex, e) {
var t = e.getTarget(),
record = grid.getStore().getAt(rowIndex), // Get the Record
columnId = grid.getColumnModel().getColumnId(columnIndex); // Get column id
if (t.className == "imgEdit" && columnId == "ItemID") {
//the ajax call is allowed
return true;
}
if (t.className == "imgEdit1" && columnId == "CategoryID") {
//the ajax call is allowed
return true;
}
//forbidden
return false;
};
</script>