On a webcombo. I have a clientSideEvents AfterSelectChange.
If runs a client side script as follow.
function validate() { if (document.getElementById("<%=wcPerCitizenship.ClientID %>")) { var retval = confirm("Are you sure you want to change this?"); if (retval) { return true; } else { return false; } } }So what I am trying to do is, if the retval is true than allow the change, if it is false than do not allow the change.When I select either it seems to allow the change anyway.Any help on this? DO I have the correct event to do this with?
Hello Daryl,
Thank you for posting in our forums.
If you want to cancel the selectChange you should handle Before event.
This event is cancelable by returning true.
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=WebCombo_Client_Side_Events_CSOM.html
For more information please refer to the below code snippet in the online documentation how to do this
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=Infragistics4.WebUI.WebCombo.v11.1~Infragistics.WebUI.WebCombo.ClientSideEvents~BeforeSelectChange.html
Let me know if you need further assistance.