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

set_recurrenceRule() not working in IE8

3 Answers 38 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Prasanna
Top achievements
Rank 1
Prasanna asked on 20 Nov 2012, 09:49 AM
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

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 23 Nov 2012, 10:04 AM
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.
0
Prasanna
Top achievements
Rank 1
answered on 26 Nov 2012, 07:16 AM
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"

0
Plamen
Telerik team
answered on 26 Nov 2012, 08:48 AM
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.
Tags
Scheduler
Asked by
Prasanna
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Prasanna
Top achievements
Rank 1
Share this question
or