Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

How to customize "View form data" in Edit mode of Episerver 8 MVC?

Vote:
 

Hi,

In my case, I need to create new event page with form for user can register and editor can edit register information like status (Ex: from "New" to "Confirmed"). I use xform for register form. There is a "View form data" in edit mode allow editor can view register information and support some function like export, delete, filter by date but I don't know how to edit register information, adding some filter functions (Ex: filter by name) or sorting. I hope someone can help me this issue.

Thank,

#123218
Jun 29, 2015 6:25
Vote:
 

Hi,

The "View form data" is rendered by the EPiServer.Web.WebControls.XFormPostings web control so I don't think there's an easy way of customizing this. Perhaps you can add a control adapter class inheriting from System.Web.UI.Adapters.ControlAdapter and do some customization in there. You can take control of the entire rendering through an adapter. See this article for more information: http://weblogs.asp.net/ricardoperes/asp-net-web-forms-extensibility-control-adapters. Another approach is to create your own dojo/dijit property or component from scratch and hide the built-in functionality but it can easily get pretty advanced.

#123282
Jun 30, 2015 16:00
Vote:
 

In the past I developed a similar solution as you with registrations for events stored as XForm data. I created a login protected area for editors/admins to view/update/export the data. If I would do it today I would probably use Entity Framework, Dynamic Data Store or something similar to store the data as it is easier to work with as a developer.

#123288
Jun 30, 2015 17:55
Vote:
 

Hi Mattias,

Thank for your response. I know it is not easy to rewrite built-in view data grid. I think another easier solution, write a sub page with grid on UI and only viewed in EditMode or after editor login to display information from xform.

#123291
Jul 01, 2015 6:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.