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
We have closed this ticket because another page addresses its subject:
UI.Web - Enable incremental filtering in all ASPxComboBox-based editors
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
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
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:
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