Enable the incremental filtering behaviour for the web combos. Similar to the Win part is doing.
Thanks,
Sebastià
Proposed Solution:
Enable the EnableIncrementalFiltering for the ASPxComboBox in this editors:
- ASPxEnumPropertyEditor.cs
- ASPxLookupDropDownEdit.dropDown
- ASPxBooleanPropertyEditor
- ASPxTypePropertyEditor
- ASPxSchedulerPropertyEditor
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.
Currently, as a workaround, you can use the following code:
using System;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxEditors;
using DevExpress.ExpressApp.Model;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Web.Editors.ASPx;
namespace MainDemo.Module.Web {
[PropertyEditor(typeof(object), EditorAliases.LookupPropertyEditor)]
public class MyASPxLookupPropertyEditor : ASPxLookupPropertyEditor {
public MyASPxLookupPropertyEditor(Type objectType, IModelMemberViewItem model)
: base(objectType, model) {
}
protected override void SetupControl(WebControl control) {
base.SetupControl(control);
ASPxComboBox combo = ((ASPxLookupDropDownEdit)control).DropDown;
if (combo == null) {
DevExpress.Persistent.Base.Tracing.Tracer.LogWarning("Cannot find ASPxComboBox to customize it!");
} else {
combo.ClientSideEvents.DropDown = "function(s, e) { s.SelectAll(); } ";
combo.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
}
}
}
}
Thanks,
Dennis
Starting with 12.1, all ASPxComboBox-based editors in XAF Web UI will have incremental filtering enabled by default (IncrementalFilteringMode.Contains).
This small feature will improve the overall user experience, as most popular tasks can now be accomplished more intuitively. See the attached video for more details.
Thanks,
Dennis
News, tips & tricks and other interesting information about DevExpress Application Framework and ORM