Ticket Q38181
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

UI.Web - Enable incremental filtering in all ASPxComboBox-based editors

Does the ASP lookup editor support incremental search?

created 16 years ago

Hi Dennis,
As of today, we are the proud owners of XAF!
So the process begins in more earnest.
Regarding your answer #5 (StartIncrementalSearch Method)
It looks like this applies to Win apps. We are creating a Web app, so my question is…
Does the ASP lookup editor support incremental search?
Thanks,
Ted

Comments (3)
Dennis Garavsky (DevExpress) 16 years ago

    Hello Ted,
    Thanks for contacting us.
    Yes, it does. To activate the Auto Filter Row in an XAF application, use the IsFilterPanelVisible attribute of the Application Model's Views | ListView node. When this attribute is set to true, the Auto Filter Row is available.
    My screenshot demonstrates how it looks in the Web.
    Does this meet your needs?
    Thanks,
    Dennis

    ?
    Unknown 16 years ago

      Hi Dennis,
      Not quite. Your example is for the lookup window that pops up for larger data sets (ASPxLookupFindEdit). I am trying to do incremental search within the drop-down itself (ASPxLookupDropDownEdit), either before or after dropping down the list of items that can be selected.
      Or are you saying that you have to set LookupEditorMode = Search or AllItemsWithSearch and always search within the popup lookup dialog?
      Thanks,
      Ted

      Dennis Garavsky (DevExpress) 16 years ago

        Hello Ted,
        >>
        Or are you saying that you have to set LookupEditorMode = Search or AllItemsWithSearch and always search within the popup lookup dialog?
        <<
        Yes, will this behavior meet your needs?
        Another variant is to set the ASPxComboBox.EnableIncrementalFiltering property via a controller when the ASPxLookupDropDownEdit is used as a control in the PropertyEditor:

        C#
        using System; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Editors; using DevExpress.ExpressApp.Web.Editors.ASPx; using System.Web.UI; namespace MainDemo.Module.Web { public partial class ViewController1 : ViewController { public ViewController1() { InitializeComponent(); RegisterActions(components); TargetObjectType = typeof(Contact); TargetViewType = ViewType.DetailView; } protected override void OnActivated() { base.OnActivated(); View.ControlsCreated += new EventHandler(View_ControlsCreated); } void View_ControlsCreated(object sender, EventArgs e) { DetailView dv = (DetailView)View; if (dv.ViewEditMode == ViewEditMode.Edit) { ASPxLookupPropertyEditor editor = dv.FindItem("Manager") as ASPxLookupPropertyEditor; ASPxComboBoxEx combo = FindComboBox((Control)editor.Control); combo.EnableIncrementalFiltering = true; } } public ASPxComboBoxEx FindComboBox(Control container) { return ((ASPxLookupDropDownEdit)container.Controls[0].Controls[1].Controls[0]).DropDown; } } }

        Thanks,
        Dennis

        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.