struts-community-plugins / struts2-jquery

Struts2 jQuery Plugin
Apache License 2.0
83 stars 49 forks source link

Fix/5.0.x grid show hide columns #486

Closed gregh3269 closed 3 months ago

gregh3269 commented 3 months ago

Improve/fix the search and fix the Show/Hide Columns in Widgets > Grid > Grid (Editable).

Needed to include ui.multiselect.js/css on the page and modify it as it was messing up the parent location, the <span class="ui-icon"/>was in the wrong place.

orig var node = $('<li class="ui-state-default ui-element" title="'+(option.attr("title") || option.text())+'"><span class="ui-icon"/>'+option.text()+'<a href="#" class="action"><span class="ui-corner-all ui-icon"/></a></li>').hide();

fix var node = $('<li class="ui-state-default ui-element" title="'+(option.attr("title") || option.text())+'">'+option.text()+'<a href="#" class="action"><span class="ui-icon"/><span class="ui-corner-all ui-icon"/></a></li>').hide();

Show/Hide Columns columns only works with sortable="true".