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

Displaying RecurrenceRule in RecurrenceEditor

5 Answers 119 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
John Hadjioannou
Top achievements
Rank 1
John Hadjioannou asked on 04 Aug 2010, 09:53 PM
I seem to have trouble using the recurrence editor to show an existing rule ready for editing.

For testing I am using:

 

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

 

RecurrenceEditor2.RecurrenceRuleText = TextBox1.Text

TextBox2.Text =

"Done"

 

 

End Sub

 


to copy the text from TextBox1 which holds the rule produced by another RecurrenceEditor (RecurrenceEditor1).  I expect RecurrenceEditor2 to show the same settings as RecurrenceEditor1, but it just shows it's initial "empty" state.

Should I be doing anything else?

Thanks
John

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Aug 2010, 02:02 PM
Hi John,

This should work. I was able to get the desired functionality in a local test. Please, find it attached and let me know if there is more to your case that we should be aware of.


Greetings,
Peter
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
John Hadjioannou
Top achievements
Rank 1
answered on 17 Aug 2010, 08:25 PM
Hi Peter

I am struggling with this,  Code similar to yours works OK.  When I set a Textbox with one button click  and use another to set the RecurrenceEditor from the saved value, it doesn't, even though the saved value seems to be set as expected:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click 
    RecurrenceEditor1.StartDate = StartDate.SelectedDate.Value 
    TextBox1.Text = RecurrenceEditor1.RecurrenceRuleText
End Sub

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click 
    ' This works:
    ' RecurrenceEditor2.RecurrenceRuleText = RecurrenceEditor1.RecurrenceRuleText 

    ' This also works: 
    ' TextBox1.Text = RecurrenceEditor1.RecurrenceRuleText 
    ' RecurrenceEditor2.RecurrenceRuleText = TextBox1.Text 

    ' This doesn't work, even though the value of TextBox1.Text displays the same as in the case above
    RecurrenceEditor2.RecurrenceRuleText = TextBox1.Text
End Sub

Any suggestions gratefully received

John
0
Peter
Telerik team
answered on 19 Aug 2010, 04:14 PM
Hello John,

Can you modify the sample that I sent you so that the error occurs and send it back to us via a support ticket?

Thanks.
  Peter
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
Mallikharjun Mulagundla
Top achievements
Rank 1
answered on 09 Feb 2011, 08:55 AM
Hi,

I want to use only RadSchedulerRecurrenceEditor control. Where as in codebehind, I am unable to get that control. Let me know, If I miss anything. I am using  2010.1.309.35 version Telerik assembly.  

Thanks, mulagundla
0
Mallikharjun Mulagundla
Top achievements
Rank 1
answered on 09 Feb 2011, 02:45 PM
Hi,

I took the latest version of Telerik. Now, I am able to get the RecurrenceEditor.

Thanks, Mulagundla
Tags
Scheduler
Asked by
John Hadjioannou
Top achievements
Rank 1
Answers by
Peter
Telerik team
John Hadjioannou
Top achievements
Rank 1
Mallikharjun Mulagundla
Top achievements
Rank 1
Share this question
or