Autosearch to redirect to particular component

1 Answer 56 Views
AutoComplete General Discussions
Darshan
Top achievements
Rank 1
Iron
Iron
Darshan asked on 05 Apr 2023, 01:20 PM

i have implemented a site with sidebar on the left with all different features of the site corresponding to respective components.

I wish to implement a autosearch kind of feature on the top of the page that should get prefilled with these components like a drop down .

On selection of that feature from autosearch, page should redirect to that components path.

How can we implement this using kendk react ?

 

1 Answer, 1 is accepted

Sort by
0
Wissam
Telerik team
answered on 07 Apr 2023, 07:40 AM

Hi, Darshan,

You can achieve this using our AutoComplete component.

Basically, you can get the selected value in the onChange handler of the component, and use it to navigate to another page. For example, if you are using the `react-router-dom` library for routing, you can pass the event value to the `to` property of the `Navigate` component:

For more information about the AutoComplete component, I would suggest checking the following article:

I hope this matches what you need, but please let me know if you have any further questions.

Regards,
Wissam
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
AutoComplete General Discussions
Asked by
Darshan
Top achievements
Rank 1
Iron
Iron
Answers by
Wissam
Telerik team
Share this question
or