SfSwitch - StateChanged nor StateChanging fired

Hello,

I have SfSwitch with binding to IsOn. The binded value does change, visually the switch also updates, however events StateChanged nor StateChanging were fired. Is this a bug? According to docs, the events should be fired whenever the property IsOn changes.


Best regards,

Ondřej


3 Replies 1 reply marked as answer

VV Vijayakumar Viswanathan Syncfusion Team May 11, 2022 11:41 AM UTC

Hi Ondrej,

 

Thanks for contacting Syncfusion support.

 

We are unable to reproduce the "StateChanged and StateChanging event not called" in the SfSwitch control. We have prepared a sample for your requirement and please get the sample from the attachments. In the sample, we have used two SfSwitch control and called the State changed and changing events. We have hooked the display alert box on the events.

 

Please check and let us know the details. If still, you have an issue please let us share the modified sample with replication steps. It will help us to provide the solution the earlier.

 

Thanks,

Vijayakumar Viswanthan


Attachment: SfSwitchSample_658157de.zip

Marked as answer

OS Ondrej Slimak May 23, 2022 02:22 PM UTC

Hello,


sorry for the late reply. The issue was on my side and I managed to achieve my goal.


Thank



RS Ruba Shanmugam Syncfusion Team May 25, 2022 04:40 AM UTC

Hi Ondrej,


Thanks for the update. Please let us know if you need any further assistance.


Regards,

Ruba Shanmugam


Loader.
Up arrow icon