tags:

views:

84

answers:

1

Hi,

I'm having problems hiding a custom button on a grid and cant figure out the reason, maybe sb has done that...

I add the button with

.jqGrid('navButtonAdd',"#pager2",
    {  caption:'Hist',
    buttonicon:"ui-icon-calendar",
    onClickButton: function()
    {
    //do sth here
    },
    id:"#hist_list2",
    position:"last",
    title:'hist'
    })

and then call

$('#hist_list2').hide();

If i do that with a default button (here delete) like this

$('#del_list2').hide();

it works ok??

Thanks, Thomas

A: 

Answered over in jqgrid forum - typo in id -> id:"hist_list2", solves the problem

trottig