We are working with the Telerik RadMenu. We want to change the graphic for the Menu Bar, our users need the option to change the graphic that appears at the top left. Our options are to use the Telerik button image or a Menu Bar image without any graphic. Both images contain the menu bar with the circle corner. How do we display the proper menu bar background of the tope left corner and the uploaded graphic from the end-user?
On button click I open a rad window . If opens fine when I close it and try to reopen with button click it won’t open on first click. But when I click one more time it opens fine.
This is the mark up for Radwindow.
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" OnClientClose="OnClientClose" >
<Windows>
<telerik:RadWindow ID="radAccountSetup" runat="server" Behavior="Default" InitialBehavior="None"
Left="0" NavigateUrl="~/SubscriberSetupPages/SubscriberSetupWizard1.aspx" Style="display: none;"
Top="0" OpenerElementID="<%# btnAccountSetup.ClientID %> " Width="825px" Height="550px"
AutoSize="false" Animation="Resize" KeepInScreenBounds="False" Modal="False"
VisibleStatusbar="False" Skin="Telerik" Title="Account Setup Wizard" VisibleTitlebar="False" DestroyOnClose="True">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
| e.Appointment.Resources.GetResourceByType("Scheduler.Room") |
| Dim cmdWindowManager As RadWindowManager = New RadWindowManager |
| cmdWindowManager.ID = "CommandWindowManager" |
| Dim cmdWindow As RadWindow = New RadWindow |
| cmdWindow.ID = "CommandWindow" |
| cmdWindow.ReloadOnShow = True |
| cmdWindow.ShowContentDuringLoad = False |
| cmdWindow.Modal = True |
| cmdWindow.AutoSize = True |
| cmdWindow.Width = Unit.Pixel(450) |
| cmdWindow.Height = Unit.Pixel(150) |
| cmdWindowManager.Windows.Add(cmdWindow) |
| contentContainer.Controls.Add(cmdWindowManager) |
| function ShowEditForm(formUrl, formTitle) { |
| var oWnd = window.radopen(formUrl, formTitle); |
| return false; |
| } |
| function ShowInsertForm(formUrl, formTitle) { |
| alert('test'); |
| var oWnd = $find(ctl00_ContentPlaceHolderMain_CommandWindowManager).GetWindowByName('CommandWindow'); |
| oWnd.SetUrl(formUrl); |
| oWnd.Show(); return false; |
| } |
| ' configure Client Script for Command Items |
| Dim radCodeBlockAction As RadScriptBlock = New RadScriptBlock |
| Dim script As New LiteralControl("<script type=""text/javascript"" language=""javascript""> " & Environment.NewLine & _ |
| String.Format(ACTION_FUNCTION_FORMAT, _ |
| ActionFunction, _ |
| ActionFormUrl, _ |
| FormTitle) & Environment.NewLine & _ |
| "</script>") |
| ' the result of String.Format is "ShowInsert('edit.aspx','CommandWindow')" |
| radCodeBlockAction.Controls.Clear() |
| radCodeBlockAction.Controls.Add(script) |
| contentContainer.Controls.Add(radCodeBlockAction) |
| var oWnd = window.radopen(formUrl, formTitle); |