3 Answers, 1 is accepted
0
Hello Sroun,
A possible approach using client-side code would be:
I hope this helps.
Best regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
A possible approach using client-side code would be:
<body> |
<form id="form1" runat="server"> |
<script language="javascript" type="text/javascript"> |
function SetMinDate(sender, eventArgs) |
{ |
var daysShift = 180; |
var dayValue = 86400000; |
var newnewDate = new Date(new Date().getTime() + (daysShift * dayValue)); |
sender.set_minDate(newDate); |
} |
</script> |
<div> |
<asp:ScriptManager ID="ScriptManager1" runat="server" /> |
<telerik:RadDatePicker ID="RadDatePicker1" runat="server"> |
<DateInput runat="server" ClientEvents-OnLoad="SetMinDate" /> |
</telerik:RadDatePicker> |
</div> |
</form> |
</body> |
I hope this helps.
Best regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sean
Top achievements
Rank 1
answered on 12 Jan 2009, 05:28 PM
Thanks daniel.
I found a simpler way on the server side: using datetime.now.addmonth(-6);
By the way, you guys may fix your forum. each time i check my post it increases the view count. it may mislead the user about the actual number of people viewing the post.
Thank you
I found a simpler way on the server side: using datetime.now.addmonth(-6);
By the way, you guys may fix your forum. each time i check my post it increases the view count. it may mislead the user about the actual number of people viewing the post.
Thank you
0
Hello Sroun,
I'm glad that you managed to achieve the desired functionality.
I would also like to thank you for the feedback about our forums. We highly appreciate the opinion of our customers.
Kind regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I'm glad that you managed to achieve the desired functionality.
I would also like to thank you for the feedback about our forums. We highly appreciate the opinion of our customers.
Kind regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.