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
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadDatePicker1.MaxDate = DateTime.Now;
}
<
telerik:RadDatePicker
ID
=
"RadDatePicker1"
runat
"server"
/>
Hello Daniel,
i try whit ur code-snippets and it works on local mode, but when i try it on other server (with UTC time) leave me to select future date and hours, how i can solve it?
thanks!
i have the solution, sorry :)
i just do this:
window.onload =
function
() {
getDate();
getDate() {
var
now =
new
Date();
datePicker = window.$find(
"<%=RadDateTimePicker.ClientID%>"
);
datePickerInicio.set_maxDate(
Date(now.getFullYear(), now.getMonth(), now.getDate(),
now.getHours()));
this solve my problem :D