Switchbutton event fires on page load

Hi,

I have a switchbutton from which the value is bind to restservice1. I added a value changed event on the switchbutton to call another restservice2.

In the page onload event I invoke restservice1 but at this moment the value changed event of the switchbutton is triggered. I only want the event triggered when the user clicks on the switchbutton.

I already tried using the click and virtual click event of the switchbutton but this event is not triggered when clicking on the switchbutton ?
1 person has
this question
+1
This topic is no longer open for comments or replies.