- Sat Oct 01, 2016 3:10 am
#786826
Hi Everyone,
I have one query in grid. I have one grid named "candidate_details". In this grid there are 9 columns. In that 8th column is approval status dropdown and 9th column is date.
If i select approval status "Rejected" then 9th column date will be disable on change of approval status. Please give me suggestion. I write js code like this
I have one query in grid. I have one grid named "candidate_details". In this grid there are 9 columns. In that 8th column is approval status dropdown and 9th column is date.
If i select approval status "Rejected" then 9th column date will be disable on change of approval status. Please give me suggestion. I write js code like this
Code: Select all
$("#form\\[CSI_candidate_details_grid\\]\\[8\\]\\[hod_approval\\]").setOnchange( function() {
var totalRows = $("#CSI_candidate_details_grid").getNumberRows();
for (var i = 1; i <= totalRows; i++) {
var hod_approval = $("#CSI_candidate_details_grid").getValue(i, 8);
if (hod_approval == "Approved")
$("#CSI_candidate_details_grid").showColumn(i,9);
else
$("#CSI_candidate_details_grid").hideColumn(i,9);
}
});