How to refresh the grid from a dropdownlist

Jul 11, 2011 at 12:40 PM

Hi there,

I would like to use a dropdownlist to filter my grid.

When I select an item in the dropdownlist it should refresh the grid with the ID from the selected item.

How can I achieve that?

KR Harmen

Jul 11, 2011 at 1:34 PM


In the dropdown's change event, you should add something like this:

$("#grid").jqGrid('setGridParam', { url: "/Search?Id=NEW_VALUE" });

Jul 11, 2011 at 1:42 PM

Hi Sternr,

I looked everywhere to fix this but this works great!

Thanks a lot!

KR Harmen