| Telerik.Web.UI.Editor.CommandList["txtProductionNotes"] = function(commandName, editor, args) |
| { |
| var text = $find("<%= txtProductionNotes.ClientID %>").get_html(); |
| var oWnd = window.radopen(GetRoot() + "/DesktopModules/JCSMisc/ViewNotes.aspx?Text=" + text, ""); |
| oWnd.Argument = "ViewNotes:" + commandName; |
| oWnd.Maximize(); |
| } |
| function OnClientClose(radWindow) |
| { |
| __doPostBack("<%= this.UniqueID %>", radWindow.Argument); |
| } |
| RadEditor objText = (RadEditor)this.FindControl(strControl); |
| if (objText.Enabled == true) |
| objText.Content = strText; |
If one uses the default option for all of the control's skins is it possible to quickly change the look of the default setting for all of the controls in a website? Viewing the forums I've seen the suggestion of changing the following line of the WebConfing file.
| <appSettings> |
| <add key="Telerik.WebControls.Skin" value="WebBlue" /> |
| </appSettings> |
<asp:ScriptManager runat="server" ID="ScriptManager1" />
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
<telerik:RadTreeView runat="server" ID="PHTreeView" CheckBoxes="true"
OnClientContextMenuItemClicked="RadTree_ContextMenuItemClick">
</telerik:RadTreeView>
<telerik:RadToolTipManager Width="215px" Skin="Sunset" Height="260px" HideDelay="1"
RelativeTo="Element" ID="PHToolTipMgr" runat="server" OffsetX="15" Position="MiddleRight"
OnAjaxUpdate="PHToolTipMgr_AjaxUpdate">
</telerik:RadToolTipManager>
</telerik:RadAjaxPanel>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script language="javascript">
function RadTree_ContextMenuItemClick(sender, eventArgs)
{
var nodeElem= eventArgs.get_node();
if(nodeElem.get_level() != 0)
{
var node = nodeElem.get_textElement();
var tooltipManager = $find("<%= PHToolTipMgr.ClientID %>");
if (!tooltipManager) return;
var tooltip = tooltipManager.getToolTipByElement(node);
if (!tooltip)
{
tooltip = tooltipManager.createToolTip(node);
tooltip.set_value(nodeElem.get_value());
tooltip.show();
}
}
}
</script>
</telerik:RadCodeBlock>
For the VB file, I am building the Tree from an XML String. Also, I am not setting the TargetControls property of the Tooltip Manager Control. Although, I have tried it and makes no difference. When choosing a context menu the PageLoad does fire but the following does not fire. I was hoping to load a usercontrol in the AjaxUpdate method.
Public Sub PHToolTipMgr_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles PHToolTipMgr.AjaxUpdate
Thanks for you help.
| public static void HideRadGridEditButtonsForReaders(GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem) |
| { |
| GridDataItem item = (GridDataItem)e.Item; |
| ImageButton editButton = null; |
| ImageButton deleteButton = null; |
| if(item["EditCommandColumn"] != null) |
| editButton = (ImageButton)item["EditCommandColumn"].Controls[0]; |
| if (item["DeleteColumn"] != null) |
| deleteButton = (ImageButton)item["DeleteColumn"].Controls[0]; |
| if (HttpContext.Current.User.IsInRole(Utilities.RoleTypes.AdministratorReaders.ToString())) |
| { |
| if(editButton != null) editButton.Visible = false; |
| if (deleteButton != null) deleteButton.Visible = false; |
| } |
| } |
| } |
| <SortingSettings SortedBackColor="#d0d0d0" /> |
