set_recurrenceRule() not working in IE8

4 posts, 0 answers
  1. Prasanna
    Prasanna avatar
    47 posts
    Member since:
    Oct 2012

    Posted 20 Nov 2012 Link to this post

    Hi,

     i have Recurrence Editor in RadWindow. I cannot set the recurrence rule in recurrence editor using set_recurrenceRule() in javascript.
    This problem caused  only  in IE8 .Please let me know the solution.


    Thanks,
    Prasanna
  2. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 23 Nov 2012 Link to this post

    Hi Prasanna,

     
    I have tested the issue and here it the code that worked properly in all browsers at my side:

    <script type="text/javascript">
            function OnClientClicked(sender, args) {
                var rrule = Telerik.Web.UI.RecurrenceRule.parse("DTSTART:20100714T000000Z\nDTEND:20100715T000000Z\nRRULE:FREQ=HOURLY;COUNT=3;INTERVAL=1\nEXDATE:20100714T000000Z,20100714T010000Z");
                var editor = $find("RecurrenceEditor1");
                editor.set_recurrenceRule(rrule);
            }
        </script>
            <telerik:RadButton runat="server" ID="RadButton1" AutoPostBack="false" OnClientClicked="OnClientClicked" Text="Populate">
            </telerik:RadButton>
            <telerik:RadSchedulerRecurrenceEditor runat="server" ID="RecurrenceEditor1">
            </telerik:RadSchedulerRecurrenceEditor>
            <div>

    Hope this will be helpful. Please review it and let me know if you have further questions concerning this issue.

    Kind regards,
    Plamen
    the Telerik team
    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 their blog feed now.
  3. Prasanna
    Prasanna avatar
    47 posts
    Member since:
    Oct 2012

    Posted 26 Nov 2012 Link to this post

    Thanks.... It works fine. When i get recurrence rule from the database the format of the recurrence rule is like this " DTSTART:20100714T000000Z DTEND:20100715T000000Z RRULE:FREQ=HOURLY;COUNT=3;INTERVAL=1 EXDATE:20100714T000000Z,20100714T010000Z
    "
    Now how to convert this to "DTSTART:20100714T000000Z\nDTEND:20100715T000000Z\nRRULE:FREQ=HOURLY;COUNT=3;INTERVAL=1\nEXDATE:20100714T000000Z,20100714T010000Z"

  4. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 26 Nov 2012 Link to this post

    Hi Prasanna,

     
    Here is one easy way to achieve such transformation:

    string a = "DTSTART:20100714T000000Z DTEND:20100715T000000Z RRULE:FREQ=HOURLY;COUNT=3;INTERVAL=1 EXDATE:20100714T000000Z,20100714T010000Z";
            string updatedA = a.Replace(" ", "\n");

    Hope this will be helpful.

    All the best,
    Plamen
    the Telerik team
    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 their blog feed now.
Back to Top