When I load my jqgrid I populate my filter toolbar select box the following way in the loadcomplete section:
$(".ui-search-toolbar").find("select").each(function (index, value) {
getDropdowndata($(this).attr('NAME'));
});
The problem is that this code runs everytime the grid is reloaded. This causes the select box to fill up with multiple values when I by example click through several pages.
What I want is to run this code only the first time the grid is loaded.
The most simple solution is to have boolean variable and check if populate had been already done