xaf-List view edit mode

Source: Internet
Author: User



Let's look at the editing modes in the list in XAF:






First, inline editing



Describes an editable list view in WinForms and ASP. NET Applications.



In win, this is friendly, just like editing in Excel. 5 Star function ^_^.



In the Web, you also need to click a button, this personal feeling and pop-up window is no different. Of course, still can see other records of information, reluctantly use it.


How do I set it?
    • Find the Xafml file in vs to find the specified list view

    • Set the AllowEdit property to true .

    • If you want to allow new features, you need to set the AllowNew property to True and the Imodellistviewnewitemrow.newitemrowposition property to top or bottom . That is, the new line is displayed above or below.




Specific features of the WinForms





Split Layout (Masterdetailmode property)



That is, the list on the left has a record selected, and the detailed view on the right shows which one. I regret to tell you that this is not supported in the Web. If necessary, use Dashboardview to customize it yourself!



Shows the split layout.



To enable split layout for a specific list view, follow these steps.


    • Open Xafml, expand the view , and navigate to the child node that corresponds to the desired list view.

    • Listviewanddetailview the Imodellistview.masterdetailmode property

    • Detailed views can be displayed to the right or bottom of the list view. Navigate to the splitlayout child node and set the Imodelsplitlayout.direction property, where you can control the horizontal or vertical .

Note


An object can have several detailed views. The Imodellistview.masterdetailview property allows you to specify the details view, which represents the object currently selected in the list view. If this property value is empty, Imodellistview.detailview uses the value. If the two Masterdetailview and the DetailView property are unspecified, then Imodelclass.defaultdetailview is used to specify the value for the current object type.



Automatically commit changes



The default behavior of the WinForms application is to display a confirmation dialog box if the end user closes or leaves the window after editing the cell (using the inline editor or using the Detailed view).



When you select another object in the view or another element in the window, the changes you make in the editable list view are automatically saved without confirmation.



Use the Modificationscontroller.modificationshandlingmode and Modificationscontroller.modificationscheckingmode properties to change the behavior required to edit the list view.





Asp. NET specific features





Inlineeditmode Property



In addition to the standard editing operations, the ASP. NET Web application XAF has special inlineedit actions. Although this action belongs to the standard Recordedit class, it is not displayed on the main toolbar. Instead, it is displayed in the context menu of the list Editor and is handled internally by the list Editor. To customize in-place editing mode in an ASP. NET application, use the Imodellistviewweb.inlineeditmode property View --ListView node.



When Aspxgridlisteditor is used, the Imodelview.allowedit property is set to true . The following table shows the effects of different values.



editform: When you press edit, the record is gone, and it appears as a column on the right.






Editformanddisplayrow: When you press edit, the original line also appears, and an edit area appears.






InLine



popupeditform: pop up a window






Batch:



Batch editing, will immediately reach Excel that way, after completion, it is necessary to press Savechages to take effect.



The biggest regret is that reference types and other complex types are not currently supported. The official has said a complex type of support method.



I understand that the official does not support complex types, which is really complex, such as supporting a*b=c back to the background to calculate.



For example, to implement the Appearce module. Like what.... Anyway a lot of features to do.



I also to the official does not support the complex type expression does not understand, has been special for several years, also special does not come out this function.



Expect this function to complete, this good on the cow B.





Important





In batch editing mode (batch) has a certain particularity:


    • When a user clicks a row, the detailed view is not invoked.
    • If the new line cannot be edited and saved, set the Aspxgridlisteditor.useaspxgridviewdataspecificcolumns property to false .
    • Several data types cannot be edited: images, references, Criteria, file attachments. Manual implementation See: How to edit the subject of a reference property in bulk edit mode.
    • With the new command, the object's value is passed to the client, and it is not updated, that is, the behavior of the server-side evaluation result is not updated back to the list.


Association Collection (collection property edit mode)



Two editing modes in the web of XAF.


    1. By default, in edit mode, the following list can also be edited.


    2. In another mode, the following list of associations can be edited when viewed.



Global control of this behavior:



You can set the Webapplication.collectionseditmode property.



To specify a pattern for a list only: Model Editor, find the Detailed view, set the Imodeldetailviewweb.collectionseditmode property.



xaf-List view edit mode


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.