BrowseDialog Incremental Search possible?


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Can we set the BD so that it shows the closest matches in the results window as the user types out of the box?



If not how might I implement this?



Thanks.

Keith Chisarik
Replies
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Trent L. Taylor (06/07/2007)
In version 1.6.1 we have made a LOT of changes to the BD to give you a lot more functionality and control. One of the features is that the Infopanel provides access to the BrowseDialogForm as well as the BrowseDialog control. The results are shown in a ListView which already has an Incremental search ability that you can take advantage of. Just add you an InfoPanel that has the text box then manually execute the incremental search on the populated results list and there you go. Smile





Hi Trent,



Is there a way to do an incremental search in the current listview control on a winform?

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Yes, but you will have to drop on a text box and then write the call the search yourself. There are two methods on a ListView that support this. You can call the FindNearestItem method or the FindItemWithText method. This should get you what you are looking for.
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks a lot, will start looking at those methods.

Edhy Rijo

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Trent,



Once again, thanks for the heads up on this one, it was really easy to implement and here is what I did:





Private Sub StartSerialIncrementalSearch(ByVal startSerialNumber As Integer)

Dim item1 As ListViewItem = Me.lstItemsStock.FindItemWithText(startSerialNumber.ToString, True, 0)

If item1 IsNot Nothing Then

item1.Selected = True

Me.lstItemsStock.EnsureVisible(item1.Index)

Me.lstItemsStock.TopItem = item1

End If

End Sub



Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Cool...looks good Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Keith Chisarik - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Edhy Rijo - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                     Thanks a lot, will start looking at those methods.
Edhy Rijo - 16 Years Ago
                         Hi Trent,

Once again, thanks for the heads up on this one,...
Edhy Rijo - 16 Years Ago
                             Cool...looks good :)
Trent L. Taylor - 16 Years Ago
Keith Chisarik - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                     Thanks Trent, that is a very good enhancement.
Edhy Rijo - 16 Years Ago
Keith Chisarik - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search