Ticket Q267406
Visible to All Users

ASPxGridView - External filter

created 15 years ago

Hi,
I would like to know if we can implement the filtering of the gridview in a separate control outside of gridview. For example, I need to have a textbox in which we can have the same filtering effect on the gridview as the controls in the filter row of the gridview. If I type something in the textbox, it should filter the grid according to the field its bound to. Please let me know how to implement the same.
Thanks

Show previous comments (3)

    Issue was solved successfully. Thank you for the support.

      Hi,
      Sorry for reopening the issue. The Textbox Keyup event is working fine. But I would like to make it like your autofilter row. For example, in my case it refresh the grid on every character I type. But with devexpress, it refresh the grid once we stop typing and after some time. For example: If I want to search for "printer", it refresh the grid on each character. But with devexpress, it refresh only after I complete "printer" or if I stop at "prin" or something like that. Please advice me on that.
      Thanks

      DevExpress Support Team 15 years ago

        Hello Ibtahim,
        The auto filter textboxes behave in a quite complex manner. I can't provide you with correct code, because it is hidden in our scripts, so if you wish so, you can debug the grid manually.
        However, I can help you by providing an idea of how to implement the required functionality: when a key is pressed, the editor starts a timer with some timeout. When a user presses another button, the timer is reset and starts again. When either the enter key is pressed or the timer stops, there a filtering callback is performed to the server. During this process, you should check whether the text is changed, and if not, you shouldn't apply the filter.
        thanks,
        Vest

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.