Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi Support,


I have a SfDropDownList with DropDownListEvents ValueChange event setup.

In the event handler method, there is a check if the change was interacted or not, so that the code inside it does not run when value is changed when component is initialized with a populated model, but I want it to be executed when it is changed by user interaction, it whatever means it happens - by selecting the value from popup or changing it using keyboard up/down arrows.

The former works fine, but the latter not. I.e., IsInteracted property is false when value is changed using up/down arrows.


Please find below my code for your reference:

Empty



private async Task OnStateChangeAsync(ChangeEventArgs args)
{
   if (args.IsInteracted)
   {  
      (This code is only executed when value is changed by selecting an item from the popup)
   }
}



Please check and advise.

Best regards,

Marco.