robinvanderknaap / MvcJqGrid

Fluent jqGrid Html Helper for ASP.NET MVC
www.playground.webpirates.nl/mvcjqgrid
GNU Lesser General Public License v3.0
101 stars 74 forks source link

Clear search and Toggle search buttons don't work at all and throw exception #11

Closed vatula closed 12 years ago

vatula commented 12 years ago

Enable those buttons and press them. Console shows: "ReferenceError: mygrid is not defined" And indeed, generated code is

jQuery('#courses').jqGrid('navButtonAdd',"#pager",{caption:"Toggle Search",title:"Toggle Search",buttonicon :'ui-icon-refresh', onClickButton:function(){mygrid[0].toggleToolbar(); }});

where mygrid is not defined.

daanl commented 12 years ago

Hi vatula,

I fixed the bug in the repo and asked @robinvanderknaap to update the nuget package

robinvanderknaap commented 12 years ago

I've updated the nuget package