We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Find & Replace Dialog appears useless

In using the TreeViewAdv control I noticed it supposedly has Find & Replace capabilities which would be neat. The FAQ section of the control says one can use the TreeViewAdvFindReplaceDialog class and gives a 3 line example.

I found several problems with it:

  1. The dialog class is not actually a dialog! it has search properties the developer can get/set and then Find/FindAll/Replace/ReplaceAll methods that can be called based on the criteria but there is no dialog! The class has no Show() or ShowDialog() methods and therefore it is not really a dialog.
  2. The example shows a screenshot of what appears to be a Metro style Search/Replace dialog where the user sets the criteria, but as mentioned in the previous point, the dialog never shows and has no methods to show it either. The example shown also fails to indicate that the user must implement the actual dialog. That seems weird because then how do you interact during the search (next/previous) if there is no dialog? and if you build your own how do you do next/previous?
  3. There is no indication whether the SearchOptions is an enumeration flag or a single-value enumeration.

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team June 7, 2019 12:54 PM UTC

Hi Emilio, 
  
Thank you for contacting Syncfusion support. 
  
Please find the following details for your quires, 
  
Query 
Details 
The dialog class is not actually a dialog! it has search properties the developer can get/set and then Find/FindAll/Replace/ReplaceAll methods that can be called based on the criteria but there is no dialog! The class has no Show() or ShowDialog() methods and therefore it is not really a dialog. 
  
If you need to use this dialog, you need to add a separate form for this. 
  
Form’s ShowDialog() used to show that dialog. 
2.The example shows a screenshot of what appears to be a Metro style Search/Replace dialog where the user sets the criteria, but as mentioned in the previous point, the dialog never shows and has no methods to show it either. The example shown also fails to indicate that the user must implement the actual dialog. That seems weird because then how do you interact during the search (next/previous) if there is no dialog? and if you build your own how do you do next/previous? 
  
User must design this dialog Form. And Set the separate buttons for Search, Find, next and previous methods. 
  
There is no indication whether the SearchOptions is an enumeration flag or a single-value enumeration. 
  
TreeViewSearchOption is enumeration flag. 
It has two flags, 
MatchCase 
MatchWholeText 
  
You can refer our TreeViewAdvSearch dashboard sample for the same, 
  
  
We hope this helps. Please let us know, if need any further assistance. 
 
Regards,
Subburaj Pandian V 
 


Loader.
Live Chat Icon For mobile
Up arrow icon