当前位置: 动力学知识库 > 问答 > 编程问答 >

Is there a key other than "name" in jqgrid for each column that can be used to hide specific columns?

问题描述:

So basically i need to hide certain columns in my jqGrid as per the requirement. Here are 2 columns as in my code:

{name:'item1',index:'apron', width:120,

align:"center",editable:true,editoptions:{size:10},

{name:'item1',index:'baggage', width:120,

align:"center",editable:true,editoptions:{size:10},

Because of some reason it is not useful to keep "name" value unique for the two columns and jqGrid allows me to hide columns using name only, referring to the column by "index" does not work. Is there any other key I can introduce?


If the question above seems complicated here is a simpler question: Is there a way to hide a column using anything other than "name" ?

分享给朋友:
您可能感兴趣的文章:
随机阅读: