I had to come with a page who has a link and returns to the selected values of a list . So here is the way i did it.
private void SetDateRequest(string dateValue, RadDatePicker datePicker, DateTime valueDate)
{
DateTime dateOut;
datePicker.SelectedDate = valueDate;
if (DateTime.TryParseExact(dateValue, "yyyy-MM-dd", null, DateTimeStyles.None, out dateOut))
{
datePicker.SelectedDate = dateOut;
}
}
and this is how I call it :
SetDateRequest(dateTo, ToDateRadDatePicker, endDate);
Cheers,
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment