Marish Littu

Marish Littu

  • NA
  • 252
  • 83.9k

close after search in jqgrid ( in ASP.NET MVC3 )

Jun 25 2012 9:05 AM

$('#jqgProducts').jqGrid('navGrid', '#jqgpProducts',

{ edit: false, add: false, del: true, search: false }, { width: 'auto', url: '@Url.Action("DeleteProduct")' }).jqGrid('navButtonAdd', '#jqgpProducts',


{

caption: 'Search',

buttonicon: 'ui-icon-search',

onClickButton: function ()

{

$('#jqgProducts').jqGrid('searchGrid', { closeOnEscape: true, multipleSearch: true, closeAfterSearch: true });


},

position: 'last',

title: 'Search'

}

);

});


*CloseOnEscape: true : while we press on escape key the search box automatically get closed

*CloseAfeterSearch: true: Once we find the value the search box automatically gets closed