or
| protected void ToolTipManager_OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) |
| { |
| Control ctrl = Page.LoadControl("~/UserControls/ucTimeRegistrations.ascx"); |
| args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl); |
| ucTimeRegistrations TimeRegistrations = (ucTimeRegistrations)ctrl; |
| TimeRegistrations.TaskID = Convert.ToInt32(args.Value); |
| } |
| public partial class ucTimeRegistrations : UserControl |
| { |
| public int TaskID; |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void RadGridTimeRegistrations_NeedDataSource(object source, GridNeedDataSourceEventArgs e) |
| { |
| RadGTimeRegistrations.DataSource = TimeRegistrationHandler.GetTimeRegistrationsFromDB(TaskID); |
| } |
| protected void RadComboBoxActivity_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) |
| { |
| RadComboBox rcbActivity = (RadComboBox)sender; |
| GridDataItem Row = (GridDataItem)rcbActivity.Parent.Parent; |
| if (Row != null) |
| { |
| int TimeRegistrationID = Convert.ToInt32(Row["TimeRegistrationID"].Text); |
| int ActivityID = Convert.ToInt32(e.Value); |
| TimeRegistrationHandler.UpdateTimeRegistration(TimeRegistrationID, ActivityID); |
| UpdatePanel upTimeRegs = (UpdatePanel) FindControlRecursive(Page, "upTimeRegs"); |
| upTimeRegs.Update(); |
| } |
| } private Control FindControlRecursive(Control rootControl, string Id) { if (rootControl.ID == Id) return rootControl; foreach (Control childControl in rootControl.Controls) { Control foundControl = FindControlRecursive(childControl, Id); if (foundControl != null) return foundControl; } return null; } |
| } |


| <telerik:RadEditor ID="fldNarrative" runat="server" Content='<%# Eval("Narrative") %>' StripFormattingOptions="MSWord" > |
| <Content /> |
| </telerik:RadEditor> |
| <telerik:RadEditor runat="server" Skin="Office2007" EnableEmbeddedSkins="true" EditModes="Design"> |
| <ContextMenus> |
| <telerik:EditorContextMenu TagName="*"> |
| <telerik:EditorTool Name="Cut" /> |
| <telerik:EditorTool Name="Copy" /> |
| <telerik:EditorTool Name="Paste" /> |
| </telerik:EditorContextMenu> |
| </ContextMenus> |
| <Tools> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="FontName" /> |
| <telerik:EditorTool Name="RealFontSize" /> |
| <telerik:EditorTool Name="ForeColor" /> |
| <telerik:EditorTool Name="BackColor" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="Bold" /> |
| <telerik:EditorTool Name="Italic" /> |
| <telerik:EditorTool Name="Underline" /> |
| <telerik:EditorTool Name="Strikethrough" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="JustifyLeft" /> |
| <telerik:EditorTool Name="JustifyCenter" /> |
| <telerik:EditorTool Name="JustifyRight" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="AjaxSpellCheck" /> |
| <telerik:EditorTool Name="Undo" /> |
| <telerik:EditorTool Name="Redo" /> |
| </telerik:EditorToolGroup> |
| </Tools> |
| </telerik:RadEditor> |

| <ClientSettings > |
| <Scrolling AllowScroll="True" UseStaticHeaders="true" ScrollHeight="500px" FrozenColumnsCount="2" /> |
| <Resizing |
| AllowColumnResize="True" |
| AllowRowResize = "false" |
| ResizeGridOnColumnResize = "false" |
| ClipCellContentOnResize = "true" |
| EnableRealTimeResize = "false" /> |
| </ClientSettings> |