insert chart inside day cell

4 posts, 0 answers
  1. Arvind Dhasmana
    Arvind Dhasmana avatar
    12 posts
    Member since:
    Apr 2010

    Posted 06 May 2010 Link to this post

    Hi

    Please refer snapshot for the requirement and let me know that how it can be achieved .
    I was using Silverlight Calendar control but not able to display the contents of chart clearly + i don't how how data will be binded for this

    Please give me some code structure wit hbinding wise that how it can be attached.

    Regards
    Charu Pahuja
  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 11 May 2010 Link to this post

    Hi Arvind Dhasmana,

    It is possible to insert the chart. I have created custom DayButtonStyle for the RadCalendar. The chart is Collapsed by default. The ControlTemplate for the DayButtonStyle defines several states for the role of the button and when it is in Date states the RadChart's visibility is set to Visible.

    There is additional class that defines attached property which sets the ItemsSource of the RadCharts within the buttons. It uses ParentOfType to find the CalendarButton in which the chart is and gets the Date from it so you can set different sources for the different dates.

    You can create additional attached property yourself that can be set on the RadCalendar and use it in some way to modify the date button charts.

    You can further customize the RadCalendar's xaml to match your design. It's relatively easy to do so in Blend.

    Sincerely yours,
    Panayot
    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.
  3. DevCraft banner
  4. charu
    charu avatar
    7 posts
    Member since:
    Jun 2010

    Posted 11 Jul 2010 Link to this post

    Hi,

    I the above mentioned case how to handle the previous & next month data.
    I.e data not get loaded for those months.

    Please reply how to handle this.

    Regards,
    Charu
  5. Pana
    Admin
    Pana avatar
    748 posts

    Posted 13 Jul 2010 Link to this post

    Hello Charu,

    You can add an attached behavior for the CalendarButtons that OnLoaded will use ParentOfType<RadCalendar>() to find the calendar in which they are placed and then listen a proper event and update their datasource.

    Kind regards,
    Panayot
    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