This is a migrated thread and some comments may be shown as answers.

Looking up value

4 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ShepherdKai
Top achievements
Rank 1
ShepherdKai asked on 15 Apr 2021, 07:05 AM
Hi,
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

Sort by
0
ShepherdKai
Top achievements
Rank 1
answered on 16 Apr 2021, 07:49 AM
Hi,
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 
0
ShepherdKai
Top achievements
Rank 1
answered on 16 Apr 2021, 07:50 AM
Hi,
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!
0
Ivan Danchev
Telerik team
answered on 19 Apr 2021, 03:51 PM

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/.

0
StorePlay
Top achievements
Rank 1
Iron
answered on 06 Sep 2021, 02:30 PM
Tags
General Discussions
Asked by
ShepherdKai
Top achievements
Rank 1
Answers by
ShepherdKai
Top achievements
Rank 1
Ivan Danchev
Telerik team
StorePlay
Top achievements
Rank 1
Iron
Share this question
or