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:
- 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.
- 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?
- There is no indication whether the SearchOptions is an enumeration flag or a single-value enumeration.
SIGN IN To post a reply.
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
Subburaj Pandian V
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
EG Emilio Grimaldo
- Jun 6, 2019 03:24 PM UTC
- Jun 7, 2019 12:54 PM UTC