Ticket T823845
Visible to All Users

Web - The FindPropertyEditor method returns null value for ListView in the inline edit mode

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM T305697: Setting property values in inline edit mode]

Hi,
I've tried this solution. But, FindPropertyEditor() method returns null value for XAF/Web/ListView/Inline Edit/19.1.3.

Other than this, if I set this parameters on Global.asax, the problem is resolving and FindPropertyEditor() method is returning the value.

C#
ASPxGridListEditor.UseASPxGridViewDataSpecificColumns = false;

Unfortunately, Inline Edit mode, etc. features disappear, if I set.

How can I do?

Thanks ,
Levent

Comments (1)
Dennis Garavsky (DevExpress) 5 years ago

    Hi Levent,

    We created this separate ticket on your behalf and will answer you here.

    We kindly ask you not to post the same request in different threads (T305697, T548791), because it is against the Support Center rules. It also actually slows down the response time instead of speeding it up. Feel free to set the Urgent flag in case of emergency.

    Answers approved by DevExpress Support

    created 5 years ago

    Hello Levent,

    ASPxGridListEditor uses data-specific column types if ASPxGridListEditor.UseASPxGridViewDataSpecificColumns is enabled. In this case, PropertyEditors are not created for the ViewEditMode.View mode, so the ComplexWebListEditor.FindPropertyEditor(<PropertyName>, ViewEditMode.View) method returns null. This behavior is by design. It is possible to handle the ASPxGridListEditor.CustomizeGridViewDataColumn event to customize a column.
    ASPxGridListEditor.UseASPxGridViewDataSpecificColumns should not affect the inline edit capability. The attached sample demonstrates the inline edit when ASPxGridListEditor.UseASPxGridViewDataSpecificColumns is disabled. If you see different behavior, please provide us with a sample reproducing the issue or modify the attached one so that we can reproduce it on our side.
    I hope you find this information helpful.

    Thanks,
    Ilya P

      Comments (3)

        Hi Ilya,
        ASPxGridListEditor.UseASPxGridViewDataSpecificColumns was affected the inline edit capability.

        I want use inline edit mode to batch. Unfortunately, ListView's Inline edit features is disappear, if I set to "false".

        C#
        <Views> <ListView Id="TestObject_ListView" AllowEdit="True" InlineEditMode="Batch"/> </Views>

        Otherwise, ListView's Inline edit features is working, but FindPropertyEditor() method is returning null value; If I set to "true".

        I want to use features like as inline edit batch mode, etc. and same time I want to get FindPropertyEditor() method value.

        I've attached same project that ListView's edit mode setted to InlinEdit Batch. Can u try again, please?

        Thanks,
        Levent

        DevExpress Support Team 5 years ago

          Hi Levent,

          Thank you for the clarification. When the UseASPxGridViewDataSpecificColumns option is disabled, ASPxGridListEditor creates EditItemTemplate for each column. ASPxGridView cannot use EditItemTemplate in Batch mode. Refer to the following ticket for additional information: ASPxGridView - Batch Editing - How to use EditItemTemplate.

          The solution provided in the Setting property values in inline edit mode ticket does not work in Batch edit mode. You need to use the Batch Edit Mode Client-Side API to access and customize cell editors in this mode.

          I want to get FindPropertyEditor() method value.

          Please check if the Batch Edit Mode - Client-Side API article helps you to accomplish your task without using the FindPropertyEditor method. If this article does not give any clue and your task is not the same as the task discussed in the T305697 ticket, please clarify what you want to achieve.

            Hi,
            Thanks to everyone who contributed to supporting new version about XAF/Web/Batch Edit mode/Reference and ImmediatePostData properties in v.19.2+. Great job!

            Thanks,
            Levent

            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.