PDA

View Full Version : Template for CRUD operations



HenrySseki
Feb 24, 2021, 7:24 PM
Hello,

I am new still figuring out my way with Ext.NET. I was wondering if there is a way or already designed template that could generate a FORM from the specified columns of a model. Say a pop up window that could help with adding new items or editing a selected item other than having to create a page for each operation.

see attached images...2550825507

something similar to this https://examples2.ext.net/#/GridPanel/Paging_and_Sorting/Local_Data_Paging/ but not inline editing. I want a form display for the give fields..

fabricio.murta
Feb 25, 2021, 7:42 PM
Hello @HenrySseki!

Maybe this v5 example is a bit closer to what you want?

- GridPanel > Update > AutoSave - Ext.NET 5 WebForms Examples Explorer (https://examples5.ext.net/#/GridPanel/Update/AutoSave/)

But there you will only see each field defined manually.

Still on v5, when we get into MVC, there's the <something>For concept, as you can see in the corresponding MVC example for the one above:

- GridPanel > Update > AutoSave - Ext.NET 5 MVC Examples Explorer (https://mvc5.ext.net/#/GridPanel_Update/AutoSave/)

...and also a specific one for a FormPanel based on the MVC's Model shape:

- Models > FormPanelFor - Ext.NET 5 MVC Examples Explorer (https://mvc5.ext.net/#/Models/FormPanelFor/)

While none of these are specificly shaped out-of-the box for Ext.NET 7, I hope this brings you ideas on what direction to seek to get the view you need in Ext.NET 7. While there's no WebForms in v7, there is the new TagHelpers, fully supported, and MVC is -- albeit redesigned Ext.NET-wise -- still there.

Hope this helps!