When you start typing in the search text box some long text, not all key strokes will be handled. Please refer to the attached gifs file illustrating the behavior in the previous version and the latest release.
Please refer to the attached sample project. Run the project and try typing "too long to type" in as your search.
AddHandler Me.RadGridView1.MasterView.TableSearchRow.SearchProgressChanged, AddressOf TableSearchRow_SearchProgressChangedPrivate Sub TableSearchRow_SearchProgressChanged(sender As Object, e As SearchProgressChangedEventArgs) If e.SearchFinished Then Me.RadGridView1.MasterView.TableSearchRow.SelectNextSearchResult() RemoveHandler Me.RadGridView1.MasterView.TableSearchRow.SearchProgressChanged, AddressOf TableSearchRow_SearchProgressChanged End IfEnd SubHi Dess:
I attached a sample project in my last reply called searchrow.zip. Please just type "too long to type" and watch the search feedback cycle from 0 to 2500 several times. It does not position on the first hit. It does not highlight any hits yellow, etc.
This is the second time the search bar was broken by a release. I have workaround code from the last time still in production.
The support ticket with all the history and the code we have is in this ticket. https://www.telerik.com/account/support-tickets/view-ticket/1348565
That code no longer works after the latest release.
Let me know if you are able to get the example project I attached to work.
I added the workaround code to the example project attached. Not sure what exactly it does. I assume it somehow takes over the old search bar.
When I type now it cycles thru searches over and over. I think it may be doing a whole search for every key stroke.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to use the following custom search cell. Could you please give it try and share with us what is the obtained behavior on your end and whether this approach suits your scenario.
Private Sub RadGridView1_CreateCell(sender As Object, e As Telerik.WinControls.UI.GridViewCreateCellEventArgs) Handles RadGridView1.CreateCell If e.CellType = GetType(GridSearchCellElement) Then e.CellElement = New CustomGridSearchCellElement(e.Column, e.Row) End If End Sub Public Class CustomGridSearchCellElement Inherits GridSearchCellElement Public Sub New(column As GridViewColumn, row As GridRowElement) MyBase.New(column, row) End Sub Protected Overrides Sub searchRow_SearchProgressChanged(ByVal sender As Object, ByVal e As SearchProgressChangedEventArgs) If e.SearchFinished Then Me.WaitingBar.StopWaiting() Me.WaitingBar.Visibility = ElementVisibility.Hidden End If If Me.GridControl IsNot Nothing AndAlso Me.GridControl.InvokeRequired Then Me.GridControl.Invoke(DirectCast(Sub() Me.SyncLabelText End Sub, MethodInvoker)) Else Me.SyncLabelText() End If Me.GridViewElement.Invalidate() End Sub End Class