Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
clear filter result in webdropdown
posted

Hi,

I have 10 records bound to a webdropdown for which I have enabled the EnableAutoFiltering="Client" and the filtering is working fine. When a user searches for a an item which is not available in the dropdown list, it shows empty (0 records and dropdown container becomes empty). Now when the user leaves the dropdown, I would like to reset the dropdown items to its original (10 items).

How can I reset the filtered result of a webdropdown?

Parents
  • 7375
    Offline posted

    Hello Nagraj,
    Thank you for posting in our forums!
    I have done some research on this and found that in the webdropdown you are using property EnableAutoFiltering="Client".
    When you set Auto Filtering client side the filtering is performed only on the client-side items collection contents,
    with no postbacks taking place. To reset the Dropdown you can use public method clearFilter , it clears the applied filter programmatically.
    function clearFilter() 
    var resultVar = instanceOfWebDropDown.clearFilter();
    You can refer the following API link:
    http://help.infragistics.com/doc/ASPNET/2015.2/CLR4.0/?page=WebDropDown~Infragistics.Web.UI.WebDropDown~clearFilter.html
    Please let me know if I may be of further assistance.

Reply Children