Bug Report T322178
Visible to All Users

A property of a complex type cannot be edited if the AllowInstanceInitializer property of the corresponding PropertyDefinition is set to False

created 9 years ago

[DevExpress Support Team: CLONED FROM T321536: PropertyGrid with ComboBoxSettings]

XAML
<dxprg:PropertyDefinition Path="*.ContextLayer">    <dxprg:PropertyDefinition.EditSettings>        <dxe:ComboBoxEditSettings ItemsSource="{Binding AllLayers}" DisplayMember="Name" IsTextEditable="False" />    </dxprg:PropertyDefinition.EditSettings> </dxprg:PropertyDefinition>

But now I have a "Layer" entry in the RowMenu. I thought I can disable this menuitem by setting AllowInstanceInitializer to false, but then I can't select any item from the combobox.

Comments (3)
Andrey Marten (DevExpress Support) 9 years ago

    Hello Andreas,

    I've reproduced this behavior and forwarded this ticket to our developers for further research. We will update this thread and will inform you as soon as we have any news.

    Thanks,
    Andrey

    AP AP
    Andreas Patock 2 9 years ago

      Any progress?

      Kirill (DevExpress Support) 9 years ago

        Hello,
        Our developers are already working on this issue. However, we cannot provide you with any precise time terms when this issue will be fixed. Follow our notifications to be informed about our progress.

        Thanks,
        Kirill

        Answers approved by DevExpress Support

        created 8 years ago (modified 8 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Additional information:

        Please accept our apologies for the delayed response in this ticket. To allow editing in this scenario, set the PropertyDefinition.IsReadOnly property to False in the following manner:

        XAML
        <dxprg:PropertyDefinition Path="ContextLayer" AllowInstanceInitializer="False" IsReadOnly="False" > <dxprg:PropertyDefinition.EditSettings> <dxe:ComboBoxEditSettings ItemsSource="{Binding AllLayers}" DisplayMember="Name" IsTextEditable="False" /> </dxprg:PropertyDefinition.EditSettings> </dxprg:PropertyDefinition>

          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.