Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadSearchBox
ID
=
"RadSearchBox1"
runat
"server"
DataSourceID
"SqlDataSource1"
DataTextField
"ProductName"
>
</
asp:CustomValidator
"CustomValidator1"
ErrorMessage
"*"
ValidationGroup
"Group1"
ClientValidationFunction
"Validate"
telerik:RadButton
"RadButton1"
Text
CausesValidation
"true"
<script type=
"text/javascript"
function
Validate(sender, args) {
//check your condition and set args.IsValid to true or false
var
searchbox = $find(
"<%=RadSearchBox1.ClientID %>"
);
if
(searchbox.get_text() ==
""
)
args.IsValid =
false
;
}
</script>