SfDropDownList.InitValue Calls SfBaseUtils.ValidateExpression Which Marks EditContext as Modified

Greetings Syncfusion team,

I've been tracking down an issue this afternoon and have finally determined the cause.

It would seem that when the SfDropDownList initializes, it calls a private method InitValue, which then calls another method SfBaseUtils.ValidateExpression, which in turn calls EditContext.NotifyFieldChanged.

IMO this is a bug, as the edit context and the object to which it is monitoring has not (yet) been modified.  The control is simply initializing its value(s) to the data it is being bound to.  EditContext.NotifyFieldChanged should only be called when the data has actually changed, as per drop down value changed, etc, but not during initialization.

I hope this makes sense!  Please let me know if you have any questions around this and/or if I have something fundamentally misunderstood.  

It would be great to have this addressed.  Everything else is working pretty well and I wanted to pass along my gratitude for all your great work out there.

Thank you for any consideration,
Michael

5 Replies 1 reply marked as answer

BC Berly Christopher Syncfusion Team April 19, 2021 10:15 AM UTC

Hi Michael, 
  
Greetings from Syncfusion support. 
  
We have confirmed the reported issue as a bug at our end and this fix will be included in our upcoming patch release scheduled on 20th April 2021. We appreciate your patience until then. Please track the status from the below feedback. 
  
  
Regards, 
Berly B.C 



MI Mike-E April 19, 2021 11:45 AM UTC

Great!  Thank you for the update and for all your efforts out there. 👍


BC Berly Christopher Syncfusion Team April 20, 2021 09:24 AM UTC

Hi Mike, 
  
Thanks for the patience.  
  
We are glad to announce that our latest release in the version 19.1.57 has been rolled out successfully and in that release, we have included the “EditContext.IsModified() returns true when we render the DropDownList with pre-select value.  So, we suggest you upgrade our Syncfusion packages to the latest version to resolve this issue in your end. 
  
Please find the release notes details from the below link.  
  
Regards, 
Berly B.C 


Marked as answer

MI Mike-E April 20, 2021 11:43 AM UTC

Great!  Thank you Berly, I can confirm the fix on my side.  Thanks again for such a quick turnaround!


BC Berly Christopher Syncfusion Team April 21, 2021 04:07 AM UTC

Hi Michael, 
  
Most welcome. 
  
Regards, 
Berly B.C10 


Loader.
Up arrow icon