I use two formview with different ItemType, but both ItemType (entity) has the property with the same name. I use dynamic data and there I have problem with class has-error. This line of code: this.Page.ModelState.IsValidField(Column.Name);
The ColumnName is simple PropertyName like Name, TypeId, .. and this method check if the key has errors and use class has-error. When I have two entity with the same name I get css class has-error for both.
Do you have the solution for this issue?
Thank you very much
Sorry. i didn't see i must install sp2 rc2 of vs2013. Now i can see the choice. but.. i have a problem with foreign keys.
I have two classes. One for users and one for user levels. I've generated it with visual studio tools db first and however i've tried also with a new class. The problem is that the foreign key is not seen as dropdown list. In the Default page i see the ID and the Entity (that should not be visible). In the Edit page i see the ID only (but no dropdown).. Another strange thing is that in the Edit page i see my Metadata correctly (Display Name for example) while in the default page there are the original fields..
The new version of the Web Forms Scaffolder supports foreign key relationships but not the current version (see https://github.com/superexpert/webFormsScaffolding). Check back in a week or so, we are actively developing the next version and hope to release it here soon.
Hello. i've downloaded the GitHub version and i've recompiled it. And now it is working correctly.
Just some hints. First. it is possible to create GetData methods that using pagination? Maybe something in scaffolding form that enable/disable it? Or there is a simply way? That's because the ListView is created with EnabledPagination="true" but GetData method returns always all rows.
Second. Im using partial class with metadata enabled. I've added the ScaffoldingTable(false) to the table that contains the fields description and all is working correctly. A good thing could be to hide the tables in the DropDown list where you choose the class to create that has the ScaffoldingTable(false). This because you will see tables X 2 for each DB table..
More to come.. :D