padmapriya patruni

padmapriya patruni

  • NA
  • 74
  • 114.5k

how to hide the column using jqgrid

Jul 4 2014 7:55 AM
else if (Model.PaperCategoryTypeId==5)
{
<span class="btn btn-info btn-sm tooltip-info btn-block" data-rel="tooltip" data-placement="bottom" title="" data-original-title="Bottm Info" style="text-align: left; margin-left: 0px; margin-bottom: 2px;">@Resources.Legislative.Committees
</span>
}
 
 
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");
}
 

Answers (1)