2 posts, 0 answers
  1. Donovan Kruger
    Donovan Kruger avatar
    7 posts
    Member since:
    May 2010

    Posted 28 May 2010 Link to this post

    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.
  2. Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 02 Jun 2010 Link to this post

    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.
Back to Top