Dear,
I used Apperance rules on BO, when I call View.SynchronizeWithInfo method, the Apperance become not effect. Please see the attachment files.
Thanks,
Van
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.
Hello Van,
It is not clear what result you wish to achieve. Your appearance rule does not have a condition, and thus it always causes the same appearance. Have I missed anything?
Anyway, the SynchronizeWithInfo method is not appropriate to refresh appearance rules. Appearance rules are cached and are not refreshed by this method for better performance. They are refreshed only when objects' properties are changed. If you have changed appearance rules in code and want to apply them, you need to reset cache via the AppearanceController.ResetRulesCache method and then call the AppearanceController.Refresh method.
Thanks,
Anatol
Hi Anatol,
In this my demo code, the appearance rule is DEMO and not have a condition. I wish after I call View.SynchronizeWithInfo() the all items in ListView still RED.
Thanks,
Van
Hello, Van
I've not managed to reproduce this issue with your sample project.
As you can see in the attached video, all items in the list view keep format after executing the "SynchronizeWithInfo" action.
Please check the attached video and correct steps if I have missed something.
Thanks, Serge
Hi Serge,
What is your XAF running version?, I am running 11.1.6.
Please see my attachments
Hello, Van
I used the 11.1.8 version to reproduce the issue, but everything operates fine on my side. I suggest that you upgrade to this version. And the problem will probably disappear.
Please feel free co contact us in case of any further difficulty.
Thanks, Serge