Hi,
I have noticed one bug using navgrid like :
jQuery(“#list2”).jqGrid(‘navGrid’, ‘#pager2’,
{ edit: false, add: false, del: false },
{},
{},
{},
{ multipleSearch: true, multipleGroup: true, showQuery: true}
Â
This works fine.Â
I have additional code where I can decide which column to show or hide and would be nice  when a column is hidden that time should not appear in the Search Dialog as a filter option so therefore I use:
$.each($(‘#list2’).jqGrid(‘getGridParam’, ‘colModel’), function (index, value) {
if (value.name == event.target.name) {
value.search = false;
}
});
so I switch off the searchability on that column and this still works fine.
Â
The bug is when I try to show a column which has been hidden and switch the search field to true that column does not appear in the Search Dialog any more. You have to refresh the page to make it visible again.
Â
When I have done some debug and checked colModel search field does not exist, once is exist it does no make difference what is it’s value.
Â
IÂ hope you can help me out, maybe I do something wrong.
Thanks,
Sandor
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top