| <telerik:RadScriptManager ID="RadScriptManager2" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| </telerik:RadAjaxManager> |
| <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> |
| <link href="Css/Global.css" rel="stylesheet" type="text/css" /> |
| <script type="text/javascript"> |
| // A lot of functions here |
| </script> |
| <style type="text/css"> |
| .rcbHeader ul, |
| .rcbFooter ul, |
| .rcbItem ul, .rcbHovered ul, .rcbDisabled ul |
| { |
| width: 100%; |
| display: inline-block; |
| margin: 0; |
| padding: 0; |
| list-style-type: none; |
| } |
| </style> |
| <script type="text/javascript"> |
| Sys.Application.add_load(loadData); |
| function loadData() { |
| var currentWindow = GetRadWindow().BrowserWindow; |
| hidInput = $('#<%=hidContent.ClientID %>'); |
| alert(hidInput.val()); |
| alert(currentWindow.sm5_editor._editor.get_html(false)); |
| //alert(currentWindow.sm5_editor._editor.get_html(false)); |
| hidInput.val(currentWindow.sm5_editor._editor.get_html(false)); |
| } |
| </script> |
| <div style="padding-top:20px">Please select a bookmark</div> |
| <div style="padding-top:5px;"> |
| <telerik:RadComboBox ID="rcbInsertBookmarkLink" runat="server" Width="340"></telerik:RadComboBox> |
| </div> |
| <div style="position:absolute; top:40px; left:362px;"> |
| <img runat="server" id="imgRedAlert" visible="false" src="~/App_Themes/Modern/images/Icons/16x16/redalert.gif" /> |
| </div> |
| <input type="hidden" id="hidContent" value="sadfsadf " runat="server" /> |
| </asp:Content> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| Master.cmdOk.Click += cmdOk_Click; |
| if (!IsPostBack) |
| { |
| BindBookmarks(); |
| } |
| } |
| protected void BindBookmarks() |
| { |
| //EmailsInfo email = EmailsManager.GetEmail(SmartmailQuerystring.EmailId); |
| string emailContent = HttpUtility.UrlDecode(hidContent.Value); |
| var reg = new Regex(EditorText.BookmarkRegex, GetRegOptions()); |
| var bs = (from Match item in reg.Matches(emailContent) |
| select new BookmarkInfo |
| { |
| BookmarkName = item.Result("$1"), BookmarkType = BookmarkType.EmailBookmark, BookmarkId = Guid.NewGuid().ToString().Replace("-", "") |
| }).ToList(); |
| rcbInsertBookmarkLink.DataTextField = "BookmarkName"; |
| rcbInsertBookmarkLink.DataValueField = "BookmarkId"; |
| rcbInsertBookmarkLink.DataSource = bs; |
| rcbInsertBookmarkLink.DataBind(); |
| } |
Hello Telerik team,
I have a requirement to make the rad scheduler read only.
As of now..i have disabled the "save" button inside the edit appointment template.
But now if i click on the new appointment..I wanted to show a alert or rad window which does not allow us to add item to the new appointment.
Kindly let me know the way i need to do it.
Thank you
Smith

I'm trialing the AJAX toolkit and it's fantastic.
I have coded a page that uses a RadRotator, a few RadComboBoxes, a RadStyleSheetManager and a RadScriptManager.
I have placed the RadStyleSheetManager and RadScriptManager just before the closing Form tag hoping this would prioritise the page's content before Telerik's scripting for SEO purposes.
Unfortunately, when the page source is viewed in a browser the following scripts are called at the top of the page, immediately after the opening Form tag.
<script src="/WebResource.axd?...lots of code..." type="text/javascript"></script>
<script src="/Telerik.Web.UI.WebResource.axd?..." type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/Core.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/jQuery.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/jQueryPlugins.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/Animation/AnimationScripts.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Rotator/RadRotator.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/Navigation/NavigationScripts.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/ComboBox/RadComboBoxScripts.js" type="text/javascript"></script>
<script src="/Telerik.Web.UI.WebResource.axd?...lots of code..." type="text/javascript"></script>
How do I force these scripts to the bottom of the page? The RadStyleSheetManager's attributes are set to OutputCompression="AutoDetect" and EnableStyleSheetCombine="true". The RadScriptManager's attributes are set to EnableScriptCombine="true", OutputCompression="AutoDetect" and ScriptMode="Release". I saw something on the Telerik site about a ScriptRegistrar - which looked promising - but can't seem to find it in the VS toolbox or in attributes belonging to the script manager.
Any help would be appreciated!
| <telerik:RadSiteMap runat="server" |
| ID="RadSiteMapPublications" DataSourceID="RadSiteMapDataPublications" Width="640px"> |
| <LevelSettings> |
| <telerik:SiteMapLevelSetting Level="0" ListLayout-RepeatColumns="4" ListLayout-RepeatDirection="Horizontal"></telerik:SiteMapLevelSetting> |
| </LevelSettings> |
| </telerik:RadSiteMap> |
| <telerik:RadSiteMapDataSource ID="RadSiteMapDataPublications" SiteMapFile="~/web.sitemap" ShowStartingNode="false" StartingNodeUrl="http://saratoga/lr/pages/default.aspx?id=2036" runat="server" /> |
| Dim myDataSource As New RadSiteMapDataSource |
| myDataSource.SiteMapFile = "~/web.sitemap" |
| myDataSource.ShowStartingNode = False |
| myDataSource.StartingNodeUrl = "http://saratoga/lr/pages/default.aspx?id=2017" |
| Dim mySiteMap As New RadSiteMap |
| mySiteMap.Width = 640 |
| mySiteMap.Height = 200 |
| mySiteMap.DataSource = myDataSource |
| Dim mySetting As New SiteMapLevelSetting |
| mySetting.Level = 0 |
| mySetting.ListLayout.RepeatColumns = 4 |
| mySetting.ListLayout.RepeatDirection = SiteMapRepeatDirection.Horizontal |
| mySiteMap.LevelSettings.Add(mySetting) |
| myLabel.Controls.Add(mySiteMap) |