I'm working in a form that will look up the value in textbox 1 and return the corresponding value in textbox 2, similar to excel vlookup. For example, in text box 1, the user may type in 2112, and I'd like for it to look up 2112 in a list and the corresponding value would be "Travel" and it places that in text box 2. I'm not sure what are the terms I should be googling to learn more about how to accomplish this. Any ideas? Thanks!
4 Answers, 1 is accepted
I'm working in a form that will look up the value in textbox 1 and return the corresponding value in textbox 2, similar to excel vlookup. For example, in text box 1, https://essaywriter.fun/ the user may type in 2112, and I'd like for it to look up 2112 in a list and the corresponding value would be "Travel" and it places that in text box 2. I'm not sure what are the terms I should be googling to learn more about how to accomplish this. Any ideas? Thanks! my issue has been solved
I'm working in a form that will look up the value in textbox 1 and return the corresponding value in textbox 2, similar to excel vlookup. For example, in text box 1, the user https://essaywriter.fun/ may type in 2112, and I'd like for it to look up 2112 in a list and the corresponding value would be "Travel" and it places that in text box 2. I'm not sure what are the terms I should be googling to learn more about how to accomplish this. Any ideas? Thanks!
Hi,
When it comes to textboxes, we don't have such functionality built-in the TextBox component. Achieving it would require a custom solution, which you could approach as explained below:
1. On keyup you can get the entered text in the TextBox and query the data. If the data is on the server, you can pass the text with AJAX request.
2. Perform the respective query and return the value you want to set to the second TextBox with the response.
3. Access the value in the response and set it to the second TextBox.
As an alternative to the TextBox component, consider using a ComboBox. It has built-in cascading capabilities, which allow the second ComboBox to be loaded with items based on the selection in the first. Here's a dojo example, which demonstrates this feature: https://dojo.telerik.com/AMiJExUR/2
Regards,
Ivan Danchev
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/.