I cannot seem to find any reference to filtering popup actions. Ideally I would like to have the filter criteria automatically entered in the Filter Builder, but I will settle for just a filtered list. Please refer to the accompanying picture.
Thank-you
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.
Hello Bill,
Thank you for your question.
To know how to filter your ListView, refer to the following help topic: Filter List Views.
If this information doesn't allow you to overcome the problem, please provide your test sample and describe your scenario in more detail.
Thanks,
Anatol
Thanks, but that was not quite what I was looking for. The list is generated in the code for the View Controller that is part of PopUp Action.
I believe that the list is created with the code that is highlighted in the attached picture (Screenshot1.jpg). I think that it is at this point that I would need to create the filter or set the values for the Filter Builder. As you can see in the picture the highlighted code is part of the the event handler for the 'CustomizePopupWindowParams' event.
Thank-you
Hello Bill,
To add a filter to your ListView, add the following code to the CustomizePopupWindowParams event handler:
ObjectSpace os = Application.CreateObjectSpace(); ListView listView = Application.CreateListView(Application.GetListViewId(typeof(DomainObject2)), new CollectionSource(os, typeof(DomainObject2)), false); listView.CollectionSource.Criteria["FilterCriteria"] = CriteriaOperator.Parse("IntProperty > 1"); e.View = listView;
For more details about filtering ListViews, I suggest that you refer to the following help topic: Filter List Views.
I've also attached my sample project. Please let me know if you need any further help.
Thanks,
Anatol
Perfect!!!
Thanks Anatol