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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Find & Replace Dialog appears useless

Thread ID:

Created:

Updated:

Platform:

Replies:

145100 Jun 6,2019 03:24 PM UTC Jun 7,2019 12:54 PM UTC WinForms 1
loading
Tags: TreeViewAdv
Emilio Grimaldo
Asked On June 6, 2019 03:24 PM UTC

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.

Subburaj Pandian Veluchamy [Syncfusion]
Replied On 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 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon