Ticket T296003
Visible to All Users

ObjectPropertyEditor - Provide the capability to easily specify a custom DetailView via the View property for the DetailView | Items or ListView | Columns node levels in the Application Model

created 9 years ago (modified 9 years ago)

Dear Support,

I created Employee object

C#
// Fields... private Address _Address2; private Address _Address1; private string _FullName; public string FullName { get { return _FullName; } set { SetPropertyValue("FullName", ref _FullName, value); } } [Aggregated] [ExpandObjectMembers(ExpandObjectMembers.Never)] public Address Address1 { get { return _Address1; } set { SetPropertyValue("Address1", ref _Address1, value); } } [Aggregated] [ExpandObjectMembers(ExpandObjectMembers.Never)] public Address Address2 { get { return _Address2; } set { SetPropertyValue("Address2", ref _Address2, value); } }

In Address2, I want to hide ZipPostal. On Module Model Editor, I cloned Address_DetvailView to Address_DetailView_Copy, and I hide ZIpPostal property on layout of Address_DetailView_Copy. On Module Model Editor -> Employee_DetailView -> Items -> Address2 -> View, I changed to Address_DetailView_Copy.

But it's not work. How to complete this task?

Many Thanks & Best Regards,
Hari Setyawan

Comments (3)
Dennis Garavsky (DevExpress) 9 years ago

    Hello Hari,

    I have replicated this behavior and it looks unexpected to me. We need some additional time to research the best ways of accomplishing your task. Please bear with us.

    Dennis Garavsky (DevExpress) 9 years ago

      Hari,

      In the meantime, you can implement a custom-tailored code solution described in the How to change ASPxObjectPropertyEditor's DetailView thread. I hope this helps.

      HS HS
      Hari Setyawan 2 9 years ago

        Thanks Dennis, I will try it first

        Answers approved by DevExpress Support

        created 9 years ago (modified 8 years ago)

        We have implemented the functionality described in this ticket. It will be included in our next update(s).

        Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

        Additional information:

        Starting with version 15.1.8, you can easily specify a custom embedded DetailView for ObjectPropertyEditor via the Model Editor at the DetailView | Items or ListView | Columns node levels in the Application Model:

        Take special note that in WinForms setting the DevExpress.ExpressApp.Model > IModelMemberViewItem > View property does not allow you to specify the DetailView opened by the OpenObject Action.

          Comments (2)

            When in a client agnostic module and on a collection property, it only displays the detail views for that object.
            However, when in a Win or Web Module, it will display a list view as I would expect.
            Is this behavior by design?
            Also when selecting a ListView, the displayed detail view is the one assigned to that list view?

            Dennis Garavsky (DevExpress) 9 years ago

              @Scott:
              >>Is this behavior by design?
              Yes, because there is no information about a specific PropertyEditor at this level. Our team will take your request into account for the future, though I cannot promise any implementation time frame for now.

              >>Also when selecting a ListView, the displayed detail view is the one assigned to that list view?
              Yes.

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.