Ticket T352631
Visible to All Users
Duplicate

Custom editors become read-only with batch in-line editing in web XAF

created 9 years ago

In the MainDemo, I set the in-line edit mode for Task to Batch.

XAML
<ListView Id="DemoTask_ListView" InlineEditMode="Batch" />

Then I replace the default editor for int with a custom one.

C#
[PropertyEditor(typeof(int), true)] public class MyIntPropertyEditor : ASPxIntPropertyEditor { public MyIntPropertyEditor(Type objectType, IModelMemberViewItem info) : base(objectType, info) { } }

Now when I start MainDemo and navigate to Task - the integer fields ActualWork and EstimatedWork have become read-only.

It works fine if the in-line edit mode is Inline.
It works fine if I don't use a custom editor.

The problem exists in 15.2.6 and 15.2.5. I don't know about earlier versions.

Source code attached.

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

Hello Robert,

The ASPxGridView control does not support custom editors in Batch edit mode. If you need to edit these columns in Batch mode, use the default editors. See more information here: ASPxGridView - How to enable editing a column/cell in Batch Edit Mode when filed is custom property editor.

    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.