Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






Hide custom button

UserPost

14:23
20/07/2010


trottig

Member

posts 7

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

20:36
23/07/2010


RedSpawn

Member

posts 6

Post edited 17:38 – 23/07/2010 by RedSpawn


hi thomas

simple typo:

id:"#hist_list2"

should be

id:"hist_list2"

21:47
23/07/2010


trottig

Member

posts 7

Excellent – thank you very much :)


About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

215


Currently Online:

101 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 10277

Posts: 30372

Membership:

There are 11043 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1210

markw65 – 179

kobruleht – 144

phicarre – 132

YamilBracho – 124

Renso – 118

Administrators: admin (60 Posts)

Moderators: tony (7387 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information