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

Call Jquery validate before do postback RadAjaxManagerProxy

1 Answer 76 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 28 Aug 2014, 08:14 AM
Hi Admin!
I have a textbox and a button to send value of textbox. I want validate value of textbox before do postback( Ajaxmanager) if textbox is empty, dopostback stop. But validate textbox empty, do postback alway continue .
Can you show me a method to stop dopostback telerik(RadAjaxManagerProxy)!

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Aug 2014, 08:22 AM
Hi David,

In order to achieve your scenario try to use the asp RequiredFieldValidator control.

ASPX:
<telerik:RadTextBox ID="rtxtValue" runat="server">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="valtxtValue" ControlToValidate="rtxtValue" runat="server"
    ErrorMessage="required">
</asp:RequiredFieldValidator>
<telerik:RadButton ID="rbtnsave" runat="server" Text="submit" AutoPostBack="false">
</telerik:RadButton>

Thanks,
Princy.
Tags
Ajax
Asked by
David
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or