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

SelectedDates on Row/Header click

3 Answers 24 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Antonio
Top achievements
Rank 1
Antonio asked on 05 Nov 2013, 12:49 PM


Hi Telerik Support, 


I'm using a singlemonth calendar with autopostback false, showcolumn/row headers true, enablemultiselect true and all code on client side and i need to know all the days that  are going to be selected when i click on the column/header row. From what i saw i can get the row/column index but dont know how to get all the days in that row/column in the currentview.

Need this to see if the days exist in another array and see if i want to select/deselect or only select the dates that dont exist on the other array.

Thanks, 
António

3 Answers, 1 is accepted

Sort by
0
Antonio
Top achievements
Rank 1
answered on 05 Nov 2013, 01:47 PM

Hey, 


Think i can resolve it with the sender.get_selectedDates()  of the event

Thanks,

0
Antonio
Top achievements
Rank 1
answered on 05 Nov 2013, 03:24 PM

Seems it isn't working. anyone has an ideia?
0
Viktor Tachev
Telerik team
answered on 08 Nov 2013, 12:43 PM
Hello Antonio,

You could use OnDateSelecting client-side event and check what date is about to be selected. This event could be used to cancel the selection. Note that when the user clicks on a column or a row this event will be fired for every date that is going to be selected. This article illustrates how OnDateSelecting could be used.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Calendar
Asked by
Antonio
Top achievements
Rank 1
Answers by
Antonio
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or