Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 23 Apr 2024, 11:01

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 26 Jun 2013, 16:29 
Offline

Joined: 11 Apr 2013, 06:51
Posts: 13
Hi,

I need help in making DBLookupComboboxEh filter its contents.

What i did:

set up
listsource, keyfield, listfield

dropdownbox.autodrop = true
.width = -1
.listsourceautofilter = true
.listsourceautofiltertype = lsftContainsEh
.showtitles = true
.sizable = true

it works fine as a combobox, but i need to filter as i type because there are many rows in te combobox


Top
 Profile  
 
PostPosted: 27 Jun 2013, 13:02 
Offline
Администратор

Joined: 22 Dec 2011, 20:19
Posts: 335
Hello

Assign DropDownBox.ListSource
and read <Filtering data in drop-down lookup lists when typing> section in "EhLib Users Guide.Doc".

Best regards
Admin

_________________
Best regards
Admin


Top
 Profile  
 
PostPosted: 29 Jun 2013, 13:05 
Offline

Joined: 11 Apr 2013, 06:51
Posts: 13
Thank you, it is working now.


Some more enhancement i'd need:

1. Can i make this filter case insensitive?
2. Can the filter take in consideration more than one column?

I attached a small sample application. In the lookup i should be able to filter by Surface value or a part of the Name column.


Attachments:
File comment: small lookup sample
lookup.zip [82.18 KiB]
Downloaded 421 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group