| <rad:MOSSRadEditor ID="RadEditor1" runat="server" ToolbarMode="Default" ToolsFile="tools.xml" |
| ContentAreaCssFile="edit.css" OnClientCommandExecuting="OnClientCommandExecuting"> |
| <realfontsizes> |
| <telerik:EditorRealFontSize Value="10pt" /> |
| <telerik:EditorRealFontSize Value="12pt" /> |
| <telerik:EditorRealFontSize Value="14pt" /> |
| <telerik:EditorRealFontSize Value="16pt" /> |
| <telerik:EditorRealFontSize Value="18pt" /> |
| </realfontsize> |
| <script type="text/javascript"> |
| //<![CDATA[ |
| function OnClientCommandExecuting(editor, args) { |
| var name = args.get_name(); //The command name |
| var val = args.get_value(); //The tool that initiated the command |
| if (name == "DynamicDropdown" || name == "DynamicSplitButton") { |
| editor.pasteHtml(val); |
| //Cancel the further execution of the command |
| args.set_cancel(true); |
| } |
| } |
| //]]> |
| </script> |
| EditorToolGroup toolbar = new EditorToolGroup(); |
| RadEditor1.Tools.Add(toolbar); |
| EditorDropDown ddn = new EditorDropDown("DynamicDropdown"); |
| ddn.Text = "Layout Elements"; |
| ddn.Attributes["width"] = "110px"; |
| ddn.Attributes["popupwidth"] = "240px"; |
| ddn.Attributes["popupheight"] = "100px"; |
| ddn.Items.Add("2 Column Table", "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"620\"><tbody><tr><td style=\"font-weight: bold\" valign=\"top\" width=\"120\"></td>" + |
| "<td valign=\"top\" width=\"400\"></td></tr><tr><td colspan=\"2\"><hr/></td></tr><tr><td style=\"font-weight: bold\" valign=\"top\" width=\"120\"></td>" + |
| "<td valign=\"top\" width=\"400\"></td></tr><tr><td colspan=\"2\"><hr/></td></tr><tr><td style=\"font-weight: bold\" valign=\"top\" width=\"120\"></td>" + |
| "<td valign=\"top\" width=\"400\"></td></tr></tbody></table><p> </p><p> </p>"); |
| ddn.Items.Add("Page Break", "<div class=\"page_break\" style=\"page-break-after:always\"></div>"); |
| ddn.Items.Add("Section Header", "<table border=\"1\" style=\"border-color: Black;\" width=\"620px\" cellpadding=\"5\" cellspacing=\"0\">" + |
| "<tr class=\"borderedtitle\"><td>V. Section Title</td></tr></table><p> </p><p> </p>"); |
| toolbar.Tools.Add(ddn); |
| RadEditor1.ToolbarMode = EditorToolbarMode.Default; |
Hi,
I am unable to bind EntiryDataSource control for RADGRID in SharePoint 2010 Visual Web Part.
but it's working fine for ASP.NET Web site.
Any clue or alternative approach will be highly appriceated.
Regards,
Suresh Kumar Udatha.
How to show the radscheduler events in grid control with recurrence events for given dates range.
I want to show like “Agenda View” like timeline in radscheduler.
REgards
Samir
| function disableDock() |
| { |
| var dock = $find("<%= RadDock1.ClientID%>"); |
| var outerDiv = dock.get_element(); |
| outerDiv.disabled = true; |
| } |
When specifying the raddock's content width to be 100%, Firefox 3.6 and IE8 appear to function as expected; however, Safari(4.0.5) and Chrome(4.1.249.1064) seem to lose some width after the raddock control is collapsed, and then expanded.
Perhaps I'm doing something wrong? Any help is greatly appreciated.
Below is a snippet of the code:
| <form id="form1" runat="server" method="post"> |
| <telerik:RadScriptManager ID="scriptManager1" runat="server"></telerik:RadScriptManager> |
| <telerik:RadDockZone runat="server" ID="dzLeft" Orientation="Vertical" FitDocks="true"> |
| <telerik:RadDock runat="server" ID="raddock1" Title="RadDock1" DefaultCommands="ExpandCollapse"> |
| <ContentTemplate> |
| <div style="background: grey; width: 100%;"> </div> |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockZone> |
| </form> |
Thanks,
Mike
edit: attached before and after images.