else if (Model.PaperCategoryTypeId==5)
{
@Resources.Legislative.Committees
}
now my question is if PaperCategoryTypeId==5 .i need to hide the column name i wrote like below code but it is not working plz help me
jQuery(document).ready(function () {
alert("start");
var papercategory = $('#PaperCategoryTypeId').val();
alert(papercategory);
if (papercategory == 5) {
$("#CommonGrid").hideCol("CommonNumberForAll");
}
else {
$("#CommonGrid").showCol("CommonNumberForAll");
}
Dorababu MekaPosted Jul 4, 2014, 8:52 AM
var myGrid = $('#CommonGrid');
myGrid.jqGrid('hideCol', myGrid.getGridParam("CommonNumberForAll")[colPos].name); // colPos is the position of your column