Home › Forums › Guriddo jqGrid JS › Discussion › Clear Search Filters
I use this code to create a premanent serach box and it works great.
OH and I should have said that I HOPE to not reload the grid when I clear the search fields.
Steve
Hello,
You can not reset the values this way, since the id generated in dialog are generated with random id (if I remember rigth)
You can try to clear the values on all elements in filter like this
$(“.input-elm”).val(“”);
oruse the build in resetFilter method
// get the id of filter using your gridSelector
var fid = $(“#fbox_”+gridSelector)[0];
fid.resetFilter();
$.extend($grid.p.postData,{});
Regards
Thank you so much, a combination of the two entrie accomplished exactly what I was trying to get done.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS