tags:

views:

15

answers:

0

Hi,

I am using jqgrid with search enabled. (C#, ASP.Net MVC)

$("#getReport").click(function() { $("#list").jqGrid('searchGrid', { multipleSearch: true, closeAfterSearch: true, closeOnEscape: true, loadDefaults: true, sopt: ['cn', 'eq', 'ne', 'gt', 'ge', 'lt', 'le', 'bw', 'ew'] }); });

I can search as expected but it crashes when search parameter is kept blank. Is there any way to put required field validation on search parameters, or cancel the search event in case the parameter value is blank?

Thanks in advance anil