I have a xammaskededitor whose source is a dataview column and the updatesourcetrigger is set to propertychanged. when the data is being loaded in the screen, propertychanged is firing. this does not occur if the source dataview is empty.
why is this happening and is there a way to prevent the propertychanged from firing on loading the initial data? i still need it to fire when the user actually edits the data field.
thanks,
areen
Hello Areen,
Thank you for your post. I have been looking into it and I can say that this behavior is expected since I believe that the set methods of your properties you call PropertyChanged. This way when you initialize the data the method is called. I can suggest you add a global variable that can be set after the data is created. Then you can use it in each set method to check if the data is created and if it is, you can call the PropertyChanged method. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thanks for the feedback, Stefan. I found a way to get around it. The developer who built the page was using the Text property to bind the data. After doing some reading on the Text vs. Value properties, I switched the binding to the Value property. So far we've been able to prevent the PropertyChanged method being called on the initial load.