[Feature]: Add API to refresh the Find popup
Describe the feature/enhancement you need
I have a report that is loaded in chunks.
If the user opens the Find popup quickly before all the data is loaded and searches for something, I want to programmatically refresh the search results.
The scenario/use case where you would use this feature
above
How important is this request to you?
Nice to have. There are other ways to tackle this, but having official API support would be beneficial.
Suggested implementation
add API like Refresh(). It's possible that the FindNext API is intended to refresh the results when called in which case great, though that API is currently broken: https://github.com/MicrosoftEdge/WebView2Feedback/issues/5060
What does your app do? Is there a pending deadline for this request?
No response
Also, would be nice to see what search term is being searched for. Then I can at least trigger another call to StartAsync with that search term as an alternative to this API
Thanks for raising this request. We will look into this request.
Meanwhile would recommend trying the new Customize the Find behavior (Find API) that is currently available in our Pre-release as Experimental API.
You can use the CoreWebView2FindOptions.FindTerm Property to get the word to searched. And then trigger another call to StartAsync with Search term.
@Lakshmisha-KS yes, I am using those APIs, but there isn't anything to refresh the search results.
Will FindTerm update with whatever is currently in the search popup? My understanding was that I could configure the search term in the options and pass them into StartAsync, but once StartAsync is called, and the user types in some text, there isn't a way to retrieve that text.