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

Multiple Date Selection Binding

3 Answers 162 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Tarik
Top achievements
Rank 1
Tarik asked on 03 Aug 2015, 10:52 AM

Hello, i am using RadCalendar and i have to bind (in two way) multiple selected dates with an observable collection existing in my ​View​Model, the SelectedDate property is currently bound to just one date.

Regards.

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 04 Aug 2015, 08:39 AM
Hello Tarik,

What I can suggest you would to check this forum post where you would be able to find more details regarding the SelectedDates property of RadCalendar. In the post there is also link to a blog post demonstrating how to achieve that using an attached property.

Hope this helps.

Regards,
Kalin
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Tarik
Top achievements
Rank 1
answered on 04 Aug 2015, 03:33 PM

Hello, First let me thank you for your quick answer, and that's resolve a big part of the problem we had.

I would like to ask you how to catch previous and next month arrows actions without working with CodeBehind, (i am using MVVMLight to catch other events and bind them to commands.

<i:Interaction.Triggers>
      <i:EventTrigger EventName="...">
              <mvvm:EventToCommand Command="{Binding OneCommand}" />
      </i:EventTrigger>
</i:Interaction.Triggers>

0
Kalin
Telerik team
answered on 05 Aug 2015, 06:46 AM
Hello Tarik,

I'm glad the suggestion helped. As for the other question, what I can suggest you would be to use the DisplayDate property of RadCalendar and bind it to a property in the ViewModel. The property changes when navigating with the arrows as well as when selecting a date - so you would need to check whether the previous value was from the same month in order to know when the user navigates.

Hope this helps.

Regards,
Kalin
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Calendar
Asked by
Tarik
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Tarik
Top achievements
Rank 1
Share this question
or