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

set_rangeMaxDate not taking effect until postback

4 Answers 43 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Levi
Top achievements
Rank 1
Levi asked on 24 Jul 2010, 05:58 AM
Currently when I call set_rangeMaxDate in javascript, the calendar does not update (i.e. apply the change) until a postback occurs. It then properly greys out any dates out of range. How do I get it to apply this effect immediately client side?

Levi

4 Answers, 1 is accepted

Sort by
0
Levi
Top achievements
Rank 1
answered on 24 Jul 2010, 06:45 AM
Also I just discovered that this problem only occurs when setting MultiviewColumns="2". Here is my Markup:

        <telerik:RadCalendar ID="rcalDateRange" runat="server" EnableEmbeddedSkins="false"
                                        EnableEmbeddedBaseStylesheet="false" Skin="swOffice2007" ShowRowHeaders="False"
                                        MultiViewColumns="2" UseColumnHeadersAsSelectors="false" EnableMultiSelect="true"
                                        AutoPostBack="true" Visible="true" ShowOtherMonthsDays="false" EnableMonthYearFastNavigation="false">
                                        <ClientEvents OnDateClick="rcalDateRange_DateClick" OnCalendarViewChanging="rcalDateRange_ViewChanging" />
                                    </telerik:RadCalendar>

Any suggestions on how to fix this?
0
Maria Ilieva
Telerik team
answered on 28 Jul 2010, 12:28 PM
Hello Levi,

Could you please let me know in which event the set_rangeMaxDate is added? I tried to replicate the issue locally using the asp Button OnClick event and it works as expected.


Regards,
Maria Ilieva
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
0
Levi
Top achievements
Rank 1
answered on 28 Jul 2010, 02:17 PM
Did you try it with MultiViewColumns="2"? I'm just calling it from a regular hyperlink. The user clicks the hyperlink then I call the function.
0
Maria Ilieva
Telerik team
answered on 02 Aug 2010, 02:36 PM
Hello Levi,

Please find attached a sample application which shows the correct behavior of this scenario. Test it on your side and let me know what the difference of your case is.

Sincerely yours,
Maria Ilieva
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
Tags
Calendar
Asked by
Levi
Top achievements
Rank 1
Answers by
Levi
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or