This is a migrated thread and some comments may be shown as answers.

Server side event not getting fired when the button is registered with JS>

2 Answers 77 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Avik
Top achievements
Rank 1
Avik asked on 06 Aug 2008, 10:35 AM
Hi,
     I have a Usercontrol which is being loaded in an aspx page.The usercontrol has a button which has been ajaxified in the aspx itself.When the user clicks the button i have to do a JS validation and depending upon whether the validation is true or false the server side click event of the button should be fired.But currently only the JS gets fired and even if the JS method returns true the server side click event of the button is not getting called.
I am using the Q1 2008 version of radAjax i.e. Telerik controls for asp.net ajax. Can anyone provide a solution for this.


Thanks,
Avik.

2 Answers, 1 is accepted

Sort by
0
Avik
Top achievements
Rank 1
answered on 07 Aug 2008, 06:23 AM
Hi ,
    Can anyone from Telerik team provide a solution for the above issue?Please help me out with this since it is of great importance.



Thanks,
Avik.
0
Sebastian
Telerik team
answered on 07 Aug 2008, 08:30 AM
Hi Avik,

Can you please check whether the conventions for server-side validation presented in these online resources:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/DataEditing/Validation/DefaultCS.aspx
http://www.telerik.com/help/radcontrols/prometheus/?grdValidation.html

are fulfilled in your configuration? Thus the validation alongside with the OnClick server event handler of the button should be processed as expected.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Avik
Top achievements
Rank 1
Answers by
Avik
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or