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

Dynamic Menu Bind in TimeSlotContextMenus in Rad Scheduler

0 Answers 15 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jiten
Top achievements
Rank 1
Jiten asked on 31 Aug 2013, 04:57 PM
Hello,
    I have problem in menu bind in TimeSlotContextMenus event.
Here is the menus which i have added in the rad scheduler control but i can't manipulate these menu to display in different time slot according to condition(condition from database).
Example:
<TimeSlotContextMenus>
                                                            <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server">
                                                                <Items>
                                                                    <telerik:RadMenuItem Text="New Appointment" Value="New" />
                                                                    <telerik:RadMenuItem IsSeparator="true" />
                                                                    <telerik:RadMenuItem Text="Add Break/Block" Value="Break" />
                                                                    <telerik:RadMenuItem IsSeparator="true" />
                                                                    <telerik:RadMenuItem Text="Paste" Value="Paste" />
                                                                </Items>
                                                            </telerik:RadSchedulerContextMenu>
<telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu11" runat="server">
                                                                <Items>
                                                                    <telerik:RadMenuItem Text="Condition" Value="Cond" />
                                                                                                                                   </Items>
                                                            </telerik:RadSchedulerContextMenu>
                                                        </TimeSlotContextMenus>
Only one menu should display in one time slot. I can't get this work. I can do in appointment menu with different menu in RadScheduler1_AppointmentDataBound event.
example:
<AppointmentContextMenus>
                                                            <telerik:RadSchedulerContextMenu ID="SchedulerAppointmentContextMenu" runat="server"
                                                                DataTextField="Status" DataValueField="Code" AppendDataBoundItems="true">
                                                                <Items>
                                                                    <telerik:RadMenuItem Text="Print" Value="Print" />
                                                                    <telerik:RadMenuItem IsSeparator="True" />
                                                                    <telerik:RadMenuItem Text="Copy" Value="Copy" />
                                                                    <telerik:RadMenuItem IsSeparator="True" />
                                                                    <telerik:RadMenuItem Text="Edit" Value="Edit" />
                                                                    <telerik:RadMenuItem IsSeparator="True" />
                                                                    <telerik:RadMenuItem Text="Cancel Chk-In" Value="DelChkIn" />
                                                                    <telerik:RadMenuItem IsSeparator="True" />
                                                                    <telerik:RadMenuItem Text="Cancel Appointment" Value="Delete" />
                                                                    <telerik:RadMenuItem IsSeparator="true" />
                                                                    <%--<telerik:RadMenuItem Text="Payment" Value="Payment" />
                                                                    <telerik:RadMenuItem IsSeparator="True" />--%>
                                                                    <telerik:RadMenuItem Text="Patient Details" Value="PatientDetails" />
                                                                    <telerik:RadMenuItem IsSeparator="true" />
                                                                    <telerik:RadMenuItem Text="Patient Chart" Value="PatientChart" Visible="false" />
                                                                    <telerik:RadMenuItem IsSeparator="true" Visible="false" />
                                                                    <telerik:RadMenuItem Text="Orders" Value="Orders" Visible="false" />
                                                                    <telerik:RadMenuItem Text="Appointment List" Value="AL" Visible="true" />
                                                                    <telerik:RadMenuItem IsSeparator="true" Visible="false" />
                                                                    <telerik:RadMenuItem Text="Visit History" Value="VH" Visible="true" />
                                                                    <telerik:RadMenuItem IsSeparator="true" />
                                                                </Items>
                                                            </telerik:RadSchedulerContextMenu>
                                                            <telerik:RadSchedulerContextMenu ID="BreakContextMenu" runat="server" DataTextField="Status"
                                                                DataValueField="Code" AppendDataBoundItems="true">
                                                                <Items>
                                                                    <telerik:RadMenuItem Text="Edit" Value="Edit" />
                                                                    <telerik:RadMenuItem IsSeparator="True" />
                                                                    <telerik:RadMenuItem Text="Cancel" Value="Delete" />
                                                                </Items>
                                                            </telerik:RadSchedulerContextMenu>
                                                        </AppointmentContextMenus>

Please help me as soon as possible.

Well done Telerik team

Thanks.

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
Jiten
Top achievements
Rank 1
Share this question
or