Hi All,
I am using infragistics grid when i refresh and reload the grid it shows previous filter value in filter textbox please help me how to remove or refresh filter also in javascript/html5.
Thanks.
Hello Robin,
Thank you for your patience while I was looking into this matter for you.
In your scenario I can suggest two approaches for achieving your requirement:
1) Set persist option of Filtering feature to false and call dataBind method when you would like to clear filtering.
2) Alternatively, in the handler of the click button you could destroy the igGrid before creating it again.
I believe this will help you achieve your requirement.
Please let me know if you have any further concerns or questions.
Thank you for providing me your sample/
I will investigate this further I and I will get back to you soon with more information or questions for you.
Please feel free to continue sending updates to this case at any time.
Hi Vasy,
Thanks for your reply.
Here i attached my file i need want to when i filter in first name field after i click on "Reload Grid" button the ajax will get the record and reload or refresh or re-initialize the grid but still the filter showing on the grid. how to clear filter. Please check and update to me.
Thanks
Robin Bronston D
Thank you for posting in our community.
By design Filtering(as well as some other grid features) have persist option which enables/disables filtering persistence between states. By default this option is set to true and my suggestion is to try setting is to false. For example:
//Initialize $(".selector").igGrid({ features : [ { name : "Filtering", persist : false } ] });
//Initialize
$(
".selector"
).igGrid({
features : [
{
name :
"Filtering"
,
persist :
false
}
]
});
If you are still experiencing any issues after trying my suggestion could you please create a small, isolated, ready to run sample and send it back to me for further investigation. Please remove all the code that is not directly related to this matter and attach the sample here. This is going to be highly appreciated and will help me debug on my side in pursuit of the root cause for this matter.
Looking forward to hearing from you.