Ticket T914021
Visible to All Users

The "Cannot change property 'DefaultSorting' when the XPCollection is not in design or initialization mode." error occurs in an XAF Blazor project

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM T505799: The "Cannot change property 'DefaultSorting' when the XPCollection is not in design or initialization mode." error occurs in MainDemo]

Hi,

I am experiencing this error in XAF Blazor project (20.1.4 - intermediate build). Not sure if it is a known issue and should I open separate ticket.
Same thing, I set data access to Server and I get this error when I try to open DetailView.

Regards,
Mario

Comments (3)
DevExpress Support Team 5 years ago

    Hello Mario,

    I tried to reproduce this issue with the current v20.1 build, but to no avail. Would you please send us a small sample project and detailed instructions on how to reproduce the issue?

    MB MB
    Mario Blatarić 5 years ago

      Hi,

      Finally I am working on a new project and sending a sample is an easy thing to do :-)
      I created a ZIP from Microsoft Teams, hopefully everything is in there.
      I changed Options a lot, just make sure that Options -> DataAccessMode in Model is set to Server before you try.

      Application will take some time to startup, I fill a lot of initial data to Mjesto.cs.

      After application starts it should focus on Vodič view, click New and the error is raised.

      Regards,
      Mario

      DevExpress Support Team 5 years ago

        Hi Mario,

        Thank you for testing XAF Blazor. I reproduced this issue on my side. We will research this behavior and update this thread once we have any news.

        Answers approved by DevExpress Support

        created 5 years ago

        Hello Mario,

        Currently, Blazor applications use their own data sources and do not support the DataAccessMode option. Please set DataAccessMode to Client to resolve this issue.
        Let me know if you need further assistance.

          Comments (3)
          MB MB
          Mario Blatarić 5 years ago

            Ok, thanks, I have been doing that anyway and it will be fine for this project.

            Regards,
            Mario

              Hello Anatol,
              <<Currently, Blazor applications use their own data sources and do not support the DataAccessMode option.>>

              Is this still true? I am getting same error with 20.2.4 version.
              If the Blazor applications do not support the Server Mode, what is the preferred way to handle large datasets?
              And when will it be supported? Do you have any plan?
              Thanks.

              Anatol (DevExpress) 4 years ago

                Hello Akin,

                Yes, this is still true.
                Currently, Blazor does not allow you to select another data source mode. However, it uses paging for root views by default. If you have performance issues in List Views, please send us your profiling results: How to measure and improve application performance.
                If the issue is in DetailView, please refer to the following ticket: Blazor - Performance - LookupPropertyEditor loads all records from its data source when a DetailView is shown.

                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.