Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Help setting default column and operator in jqGrid search dialog.


nelsonm - 8:30 pm on Jan 18, 2013 (gmt 0)


Hi all,

This is for all you jqGrid users. I appended a new button to the nav bar to open an alternate search dialog using:

function setFilterByCustomer(grid){
$('#'+grid+'_toppager_left').append("<input id='FilterByCustomer' type='button' value='Filter By Customer' style='height:22px; margin-left:5px;'/>");
$('#'+grid+'_toppager_left input#FilterByCustomer').click( function(){

$(grid).jqGrid ('searchGrid', {multipleSearch:true});

});
}

All i want to do is have the search dialog pop up with a specific column and operator pre-selected. However, there does not appear to be any option with the searchGrid method that allow for defining a specific column or operator as selected.

Is there another way to select a specific column and operator in the search dialog before or after it opens?

thanks


Thread source:: http://www.webmasterworld.com/javascript/4537251.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com