The code snippets from the documentation of the Data Validation
feature should be fully functional as long as the following has been fulfilled:
1. All required assembly references
have been added to the project.
2. The Telerik.Windows.Documents.Spreadsheet.Model.DataValidation namespace has been added.
Additionally, note that the feature was introduced in the most recent Q1 2015 release, so the respective classes are not available in versions prior it.
The below snippet will apply a whole number rule to the (0,0) cell in the active worksheet of a RadSpeadsheet
control with name radSpreadsheet
"The input is restricted to whole number values between 0 and 100"
context.ErrorStyle = ErrorStyle.[
"The entered value is not valid. Allowed values are in the range between 0 and 100!"
context.ComparisonOperator = ComparisonOperator.Between
I hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.