This is a migrated thread and some comments may be shown as answers.

Calendar

1 Answer 33 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Donovan Kruger
Top achievements
Rank 1
Donovan Kruger asked on 28 May 2010, 01:49 PM
Hi Guys

I have a treeview that is binded to a sql table of usernames.
Now when I select the username from the calendar, then I populate dates on the calendar that correspond to that username.

I would like to know is how to refresh the calendar when selecting another username so that their dates are displayed.

Kind Regards.
D.Kruger

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 02 Jun 2010, 05:53 PM
Hi Donovan Kruger,

Thank you for writing.

You can show a particular date in RadCalendar by using FocusedDate property. In your case, you can use SelectedNodeChanged event to set this property:
void radTreeView1_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
{
    this.radCalendar1.SelectedDate = (DateTime)e.Node.Tag;
    this.radCalendar1.FocusedDate = (DateTime)e.Node.Tag; 
}

I hope this helps. Do not hesitate to contact me again if you have any additional questions.

Sincerely yours,
Martin Vasilev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Donovan Kruger
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or