Breaking Change T921344
Visible to All Users

Form Layout - The DxFormLayoutItem.CaptionFor property value is no longer assigned to the ID property of editors in the template

What Changed

If you specify a layout item's CaptionFor property value, we no longer assign this value to the ID property of DevExpress editors in the layout item's template.

Reasons for Change

In previous versions, the Form Layout automatically assigned the CaptionFor property value to the ID property of all DevExpress editors in the template. If the item template contained one editor, the item caption and editor were associated correctly. If the template contained multiple editors, all of them had the same ID, and users could not focus/select only one editor. For example, the following issue occurred: T901339.

Impact on Existing Apps

This change will affect your application if you specify the CaptionFor property.

Razor
<DxFormLayout> <DxFormLayoutItem Caption="Contact Name:" CaptionFor="name_text_box"> <Template> <DxTextBox @bind-Text="@Name"></DxTextBox> </Template> </DxFormLayoutItem> </DxFormLayout>

How to Update Existing Apps

To associate a layout item's caption and a DevExpress editor in the template, you need to set both the item's CaptionFor and the editor's InputId properties to the same value.

Razor
<DxFormLayout> <DxFormLayoutItem Caption="Contact Name:" CaptionFor="name_text_box"> <Template> <DxTextBox @bind-Text="@Name" InputId="name_text_box"></DxTextBox> </Template> </DxFormLayoutItem> </DxFormLayout>

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.