Ticket T555003
Visible to All Users

Display data in listview only after user enters information

created 8 years ago

I need a listview to display data only after the user starts filtering, just like the lookuplistviews.
This is the scenario:

  1. When opening a page containing the view, the view should no even try to display the data.
  2. When the user starts searching (applies a filter), the data should be displayed.
    Is this possible?
    Thanks.

Answers approved by DevExpress Support

created 8 years ago (modified 5 years ago)

Hello Jose,

If you are going to use the Auto Filter Row for filtering, check the following topic: How to: Filter Large List Views using the Auto Filter Row.
If you are going to use the Full Text Search action from the toolbar, add a filter with the FilterController.FullTextSearchCriteriaName ID to the ListView.CollectionSource.Criteria collection when the ListView is shown. This filter will be overridden by the Full Text Search action when it is executed.
In addition, check the How to show filter dialog before showing ListView example that implements a similar task.
If you need further assistance, describe the required behavior in greater detail.

    Comments (2)

      Thank you Anatol.

      Anatol (DevExpress) 8 years ago

        You are welcome!

        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.