Completed
Last Updated: 21 Mar 2019 15:08 by ADMIN
Release 2019.1.318 (03/18/2019)
Scott
Created on: 28 Feb 2019 06:49
Category: GridView
Type: Bug Report
1
RadGridView: Search text box doesn't handle all key strokes when you enter a long search pattern

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.

7 comments
Dimitar
Posted on: 21 Mar 2019 14:00
Hello, 
 
A Fix is available in LIB Version 2019.1.318 released on March 18th.

Best regards, 
Dimitar
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 11 Mar 2019 08:49
Hello, Scott,    

I can confirm that the issue has been prioritized with high urgency in our backlog. We will do our best to introduce a fix and cover both cases as soon as possible. 

As to the provided sample project, I can suggest you to handle the RadGridView.MasterView.TableSearchRow.SearchProgressChanged event and call the TableSearchRow.SelectNextSearchResult method. Thus, if the InitialSearchResultsTreshold property is set to 0, you can force selecting the next result. 

    AddHandler Me.RadGridView1.MasterView.TableSearchRow.SearchProgressChanged, AddressOf TableSearchRow_SearchProgressChanged
 
Private 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 If
End Sub

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 
 
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
Scott
Posted on: 06 Mar 2019 18:42
Please consider this breaking change to this vital functionality urgent. 
Scott
Posted on: 05 Mar 2019 02:00

Hi 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.

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 04 Mar 2019 10:56
Hello, Scott,         

The provided workaround adjusts the code as it was in the previous version in which you indicated in the other thread that the search behavior performed OK. If the text in the search box is changed, the search timer is stopped and then started again with the new search criteria. This means that if you have an ongoing search operation, it will be aborted and a new one will be started. No key stroke is ignored now if you type while the process is running. 

Note that you can also control the search delay by the MasterView.TableSearchRow.SearchDelay property. 

However, if you are still experiencing any further difficulties, it would be greatly appreciated if you can provide additional information and specify the exact steps how to reproduce the problem you are currently facing. Thus, we would be able to analyze the precise case and further assist you. Thank you in advance.

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Scott
Posted on: 28 Feb 2019 12:25

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.

Attached Files:
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 28 Feb 2019 07:23
Hello, Scott,

Thank you for reporting this issue. 

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

I am looking forward to your reply.


Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.