How to show the recurreneRule from database in the pop-up recurrencePanel

In the Calendar Click event add code to get the rule and create and object of recurence Panel. Then set the recurrenceRule variable in recurrencePanel

Ex:
_recurrencePanel = new RecurrencePanel();
_recurrencePanel.recurrenceRule = new RRule(cal.selectedItems[0].item.@rrules);