Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
ClientSide Event method parameters
posted

I want to  catch the selection change event in the js and I know I shoud  do it like this:

 <ig:WebDropDown runat="server" Width="100%" EnableViewState="false" AutoPostBack="false">

<ClientEvents SelectionChanged= "myMehtod" /> 

</ig:WebDropDown>

But I dont' know the parameters of the method "myMethod", I search the help pages and I didn't find there are any document on this. could you please show  me the definition of the client side event method?

thanks,

Eric

Parents
  • 695
    Verified Answer
    posted

    Hello,

    SelectionChanged client-side event uses DropDownSelectionEventArgs.

    Here is an example how you can use SelectionChanged client-side event:

      function myMethod(sender, eventArgs) {
                alert(eventArgs.getNewSelection()[0].get_text());
                alert(eventArgs.getOldSelection()[0].get_text());
            }

    Regards,
    Nikolai Dimitrov

Reply Children
No Data