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

Redraw Calendar

1 Answer 44 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 02 Feb 2016, 01:49 AM
I have a few rad buttons that set radCalendar1.selectedDate = "Some date" (+-1 day, +-7 days, +-1 month). The code works and the calendar does highlight the correct day but I can't see the selected date if it is in a different month/view. Is there a way to refresh the calendar view/display to update to the radCalendar1.selectedDate?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 03 Feb 2016, 12:15 PM
Hello,

I tested the behavior, however, the correct month is displayed after changing the date on my end. I used the scenario from the snippets below for testing.


<telerik:RadScriptBlock runat="server" ID="RadCodeBlock1">
    <script type="text/javascript">
        function clientClick() {
            var picker = $find("<%= RadDatePicker1.ClientID %>");
            picker.set_selectedDate(new Date(2016, 3, 3));
        }
    </script>
 
</telerik:RadScriptBlock>
 
<asp:Button Text="Set date" runat="server" OnClientClick="clientClick(); return false;" />
 
<telerik:RadDatePicker runat="server" ID="RadDatePicker1"></telerik:RadDatePicker>


Let me know if this approach is working for you. Also, please describe what is different in your scenario.

Regards,
Viktor Tachev
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
Kevin
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or