By default LookupEdit uses StartsWith search.
Is there any way to change search type to Contains? Ideally, highlight user entered part in the results (popup).
I understand auto-completion needs to be disabled, cause it would not make sense.
Thank you.
Victor.
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.
Hi Victor,
We already have a similar suggestion (XtraEditors -Add a way to disable the editor's value alteration via the mouse wheel). This suggestion is implemented only in the GridLookUpEdit (RepositoryItemGridLookUpEdit) control. Since it provides the same (and also extended) functionality as the LookUpEdit control, we recommend that you use it, instead. Please refer to the RepositoryItemGridLookUpEdit.PopupFilterMode Property help topic.
Thanks,
John.
Hi John,
I am sorry, I cannot see how value alteration with mouse wheel is related to my question. I guess you meant some other ticket #.
Regarding switching to GridLookUpEdit, it seems to require major coding effort, as some properties are missing, and some events are no longer triggered as they used to be in LookupEdit. Also, it now looks more like a grid, which not our intended use. I understand it might be possible to customize, but again, it looks to me as too much effort for this amount of functionality.
For now, I think we better wait until you implement Contains search in LookupEdit, hope it happens soon.
Thank you.
Victor.
Hi Victor,
I apologize for providing you with a wrong suggestion. The right suggestion is GridLookUpEdit - Add "Contains" filter mode with highlighting.
If the use of GridLookUpEdit is unwanted in your application, I suggest you create your own LookUpListDataAdapter descendant and override its CreateFilterExpression method to manually create a filter expression. Then, you need to create a LookUpEdit descendant and override its CreateDataAdapter method.
It is impossible to implement this feature in full with the LookUpEdit descendant, though the attached example partially operates. I believe it is better to use GridLookUpEdit, which provides the capability to choose the filter mode via the RepositoryItemGridLookUpEdit.PopupFilterMode property.
Thanks,
John.
Finally decided to switch to GridLookUpEdit, due to numerous issues with LookupEdit.