set_rangeMaxDate not taking effect until postback

5 posts, 0 answers
  1. Levi
    Levi avatar
    53 posts
    Member since:
    Jun 2010

    Posted 24 Jul 2010 Link to this post

    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
  2. Levi
    Levi avatar
    53 posts
    Member since:
    Jun 2010

    Posted 24 Jul 2010 Link to this post

    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?
  3. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 Jul 2010 Link to this post

    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
  4. Levi
    Levi avatar
    53 posts
    Member since:
    Jun 2010

    Posted 28 Jul 2010 Link to this post

    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.
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Aug 2010 Link to this post

    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
Back to Top