DEV Community

Discussion on: Add items dynamically in list in .net core

Collapse
 
sofiery profile image
iSoShiFiery

Heey, Great explanation! But I am having a little trouble. The @Html.EditorFor() is not working for me. It does not load the partial view what so ever. I think I did everything the same way you explain it. Any help you could offer?

Collapse
 
edihasaj profile image
Edi

Just add the model template you are trying to add with EditorFor() to the ~Views/Shared/EditorTemplates/YOURPARTIALVIEW.cshtml.

Create EditorTemplates if it doesn't exist!

Collapse
 
sofiery profile image
iSoShiFiery

Thanks for your reply, but I already have that. So that is not the fix.

Thread Thread
 
hajerkr profile image
Hajer Karoui

Hi! I am having the same issue, did you figure out what the issue may be?