or
<telerik:RadScheduler ID="rsAppointments" runat="server" DataEndField="AppointmentEndDate" DataKeyField="ID" DataStartField="AppointmentStartDate" DataSubjectField="AppointmentTypeID" DataDescriptionField="AppointmentTypeID" Height="600px" onnavigationcomplete="rsAppointments_NavigationComplete" OnClientAppointmentInserting="OnInsertAppointment" OnClientAppointmentEditing="OnEditAppointment" OnClientAppointmentContextMenuItemClicked="OnAppointmentMenuClicked" OnClientAppointmentContextMenu="OnAppointmentMenu" OnClientTimeSlotContextMenuItemClicked="OnTimeslotMenuClicked" GroupingDirection="Vertical" SelectedView="TimelineView" DayEndTime="20:00:00" DayStartTime="07:00:00" WorkDayEndTime="20:00:00" WorkDayStartTime="07:00:00" onappointmentcreated="rsAppointments_AppointmentCreated" onappointmentupdate="rsAppointments_AppointmentUpdate" onappointmentdelete="rsAppointments_AppointmentDelete"> <WeekView UserSelectable="False" /> <DayView UserSelectable="False" /> <MonthView UserSelectable="False" /> <TimelineView GroupBy="Resources" GroupingDirection="Vertical" UserSelectable="false" NumberOfSlots="39" StartTime="07:00:00" ShowResourceHeaders="true" EnableExactTimeRendering="true" ColumnHeaderDateFormat="HH:mm" SlotDuration="00:20:00" ShowInsertArea="false" /> <ResourceTypes> <telerik:ResourceType Name="Resources" KeyField="AppointmentResourceID" TextField="AppointmentResource" ForeignKeyField="AppointmentResourceID" /> </ResourceTypes> <AppointmentTemplate> <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <td style="border: none;"><asp:Literal ID="litContent" runat="server"></asp:Literal></td> </tr> </table> </AppointmentTemplate> <AppointmentContextMenus> <telerik:RadSchedulerContextMenu runat="server" ID="cmAppointment"> <Items> <telerik:RadMenuItem Text="Open" Value="CommandEdit" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Delete" Value="CommandDelete" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Attended" Value="Attended" /> <telerik:RadMenuItem Text="Cancel" Value="Cancel" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Go to Record Summary" Value="PatientRecord"></telerik:RadMenuItem> <telerik:RadMenuItem Text="Go to Demographics" Value="Patient"></telerik:RadMenuItem> </Items> </telerik:RadSchedulerContextMenu> </AppointmentContextMenus> <TimelineView HeaderDateFormat="dddd, dd MMMM yyyy" /> <TimeSlotContextMenus> <telerik:RadSchedulerContextMenu runat="server" ID="cmTimeSlot"> <Items> <telerik:RadMenuItem Text="New Appointment" Value="CommandAddAppointment"></telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true" /> <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" /> </Items> </telerik:RadSchedulerContextMenu> </TimeSlotContextMenus> <TimeSlotContextMenuSettings /> </telerik:RadScheduler><st:STGrid ID="stGrdNotesMaster" runat="server" TabIndex="212" AutoGenerateColumns="false" AllowSorting="false" AllowPaging="false" ClientSettings-AllowColumnsReorder="false" ClientSettings-AllowDragToGroup="false" ShowGroupPanel="false" > <MasterTableView DataKeyNames="ID" HierarchyDefaultExpanded="false" NoMasterRecordsText="" NoDetailRecordsText="" GroupLoadMode="Client" HierarchyLoadMode ="Client" > <Columns> <telerik:GridBoundColumn HeaderText="ListName" DataField="Name" UniqueName="ListName" /> <telerik:GridTemplateColumn UniqueName="Reorder"> <ItemTemplate><st:STButton ID="btnReorder" runat="server" CommandName="reorder" Text="Reorder based on sort" /></ItemTemplate> </telerik:GridTemplateColumn> </Columns> <DetailTables> <telerik:GridTableView Name="Detail" AllowSorting="true" AllowPaging="false" DataKeyNames="ID" NoMasterRecordsText="" NoDetailRecordsText="" EditMode="InPlace"> <Columns> <telerik:GridHyperLinkColumn UniqueName="Subject" HeaderText="Subject" DataNavigateUrlFormatString="~/notedisplay.aspx?id={0}" DataNavigateUrlFields="ID" DataTextField="Subject" SortExpression="Subject" ItemStyle-CssClass="gridhyperlink" HeaderStyle-Width="500px" /> <telerik:GridHyperLinkColumn UniqueName="Attachment" HeaderText="Attachment" DataNavigateUrlFormatString="javascript:void(window.open('imageviewer.aspx?a=3&b=Attachment&c={0}', '_blank', 'left=0, top=0, width=785, height=585, titlebar=yes, location=no, status=no, toolbar=no, menubar=no, scrollbars=no, resizable=yes'));" DataNavigateUrlFields="ID" DataTextField="AttachmentName" SortExpression="AttachmentName" ItemStyle-CssClass="gridhyperlink" /> <telerik:GridBoundColumn UniqueName="AddDate" HeaderText="Created" DataField="AddDate" SortExpression="AddDate" ReadOnly="true" /> <telerik:GridNumericColumn HeaderText="Position" DataField="SortOrder" SortExpression="SortOrder" UniqueName="SortOrder" /> <telerik:GridEditCommandColumn UniqueName="EditColumn"> <ItemStyle CssClass="gridhyperlink" /> </telerik:GridEditCommandColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView> <ClientSettings AllowExpandCollapse="true"> </ClientSettings> </st:STGrid>| function onClick(sender, eventArgs) { |
| var item = eventArgs.get_item(); |
| if (item.get_value() != "Action") { |
| switch (item.get_value()) |
| { |
| case "Export": |
| if (confirm("Are you sure you want to export the selected Employee's to Excel?") == true) { |
| return true; |
| } |
| else { |
| return false; |
| } |
| break; |
| case "Terminate": |
| return confirm("Are you sure you want to Terminate the selected Employee's?"); |
| break; |
| } |
| } |
| } |
| <telerik:RadMenu ID="RadMenu1" Width="100%" runat="server" |
| Skin="Web20" |
| OnClientItemClicked="onClick" |
| onitemclick="RadMenu1_ItemClick"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| <Items> |
| <telerik:RadMenuItem runat="server" PostBack="False" Text="Action" |
| Value="Action" ImageUrl="~/images/cog.png"> |
| <Items> |
| <telerik:RadMenuItem runat="server" Text="Export Selected" Value="Export"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Term Selected" Value="Terminate"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Import from Excel" Value="Import"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenu> |