Strongly typed DropDownList in ASP.NET Core

Hello,  I am using Syncfusion EJ2 Version 18.3.0.44,

Can we use DropDownList  with our entities and Post data to action methods with that ? 
I cant find documents for this ability to post values of drop down list to action methods.

thanks

1 Reply 1 reply marked as answer

SP Sureshkumar P Syncfusion Team October 30, 2020 10:28 AM UTC

Hi Armin, 
 
Greetings from Syncfusion support. 
 
We would like to say this, we have supported the strongly typed Dropdownlist component support in our source. We suggest you use our DropDownlistFor component to achieve your requirement. 
 
Please find the code example here:  
<ejs-dropdownlist id="dropdown" name="Value" ejs-for="Value" dataSource="ViewBag.data" placeholder="Select a country"> 
                <e-dropdownlist-fields value="Name"></e-dropdownlist-fields> 
            </ejs-dropdownlist> 
 
 
To know more about dropdownlistFor component. please refer the below online documentation and demo pages. 
 
 
 
Regards, 
Sureshkumar P 
 


Marked as answer
Loader.
Up arrow icon