gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

hideCol not working #1049

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. Create a jsp with a grid that has a subgrid (probably only need a grid with 
a column that can be hidden
2. try to hide the 'subgrid' column
3.

What is the expected output? What do you see instead?
The column is hidden
I tried it in firebug, where gridtable is the id of my grid, and see the 
following error
$("#gridtable").jqGrid.hideCol('subgrid')
TypeError: this.each is not a function
.hideCol()jquery-1.10.2.js (line 3963)
()debugg...al code (line 1)

Which struts2 version?
2.3.15.2

Which struts2-jquery plugin version?
3.6.1

Please provide any additional information below.

Original issue reported on code.google.com by jeff.kre...@farecompare.com on 9 Oct 2013 at 12:51

GoogleCodeExporter commented 9 years ago
I found that the following works to hide a column

$("#gridtable").jqGrid('hideCol','subgrid')

Original comment by jeff.kre...@farecompare.com on 9 Oct 2013 at 2:59

GoogleCodeExporter commented 9 years ago
Sounds like you found a solution and it is not a problem of struts2 jquery 
plugin itself.

Original comment by johgep on 10 Apr 2014 at 7:07