Closed zabulus closed 10 years ago
Sorry I haven't had a chance to look at this yet - it is in my list. I'm in the middle of preparing for some presentations at the moment. @MattDavies has been pretty busy too. I'm sure one of us will find time over the next few days.
In the meantime, can you paste the html of that field that is generated?
Looks like there was my misunderstanding or some bug. I've refactored my code - and it's worked well as supposed to. I think my problem in misuse access modifiers for fields in my viemodel.
Glad to hear your problem is sorted :)
Here is my model:
AdminPermission is an enum with values. ViewModel looks like this:
GET controller method for this view follows:
POST controller method signature is:
In this case binding won't work. Model.Items is empty, another fields filled successfull. I've debugged POST request with Fiddler, it gaves me suggestion to workaround the issue by changing signature:
and it works. Looks like you've missed name of parent in html name generating.