What will be the best way to perform an operation when the object gets selected from the search handler dropdown? I know we can create a custom class that extends the SearchHandler and impelement some of the methods, but this will not help when we use the Searchhandler in multiple pages then we will have to create a class for every page and route to itself in the OnItemSelecetd method.
For instance, if page A has SearchHandler and select an Item from the dropdown will trigger the OnItemSelecetd and use routing to route to page A. Same thing applies to page B which will have it's own class that extends SearchHandler and trigger OnItemSelected and route to itself.
I am trying to find a way that handles the selecetd item and perform operation while I am in the same class.
I used SelectedItem which I know now it is read only, but it works fine. The only issue I have when I used it
is the error I get that says "Property does not have accessible setter".
If we could bind the SelecetdItem, that will solve the problem.