Bug Report T858148
Visible to All Users

Form - The ItemOptions method does not update column count of GroupItems

created 5 years ago (modified 5 years ago)

Issue: Modifying colCount of grouped items using itemOptions is not working in 19.2.5
Demo: CodeSandBox React

Steps to Reproduce:

  1. Using link provided, click the button with text SET COLCOUNT = 2
  2. Notice for a split second Form tries to set the column to 2 but immediately resets to 1

Actual Behavior:
Form did not update column count of GroupItem

Expected Behavior:
Form would split the column to 2.

Answers approved by DevExpress Support

created 5 years ago

Hi,

We researched this issue and found that, unfortunately, the current architecture does not allow us to fix it. It requires rewriting a lot of internal code, which can affect existing customer scenarios. We have plans to fix this issue in the future. But, I can't give you a precise date as to when a fix may be ready.

Currently, we recommend using React state instead of the itemOption method as in the examples below:

JavaScript
setColCount = () => { this.form.current.instance.itemOption("mygroup", "colCount", 2); };
JavaScript
setColCount = () => { this.setState({ colCount: 2 }); };

    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.