Marcelo Souza

Marcelo Souza

  • NA
  • 25
  • 6.1k

ASP.NET MVC Modal Lookup

Feb 1 2018 6:03 PM
Helllo
 
Does anybody know how to create a modal lookup in asp.net mvc?
 
This is my scenario:
 
1 -  I have a "Create" view with many fields and one of them have too many records. Thats why I need a modal form to select the field that I want among all of them. I want to place a binoculars image close to the field (I won't use dropdownlist - I will use @EditorFor). When the user clicks the text field, it will open the Modal.
 
2 - The modal will have a text to search and a table with the results. The user will filter the results, double click the line of the table and the result will appear in the @EditorFor field (I'm using Razor).
 
How can I do this? I tutorial would be appreciated.
 
Thanks in advance.

Answers (2)