I have a few webparts that have been developed using ascx controls templates. I cannot for the life of me get the editor lite working...
Okay, so i have gone through tutorials, downloaded the 91 meg PD and source samples. all reference an assembly and namespace i do not have. I reflect through the net2.dll and attempt to markup my page and add references to my code "Telerick.WebControls"
the MOSSRadEditor.wsp is deployed so the .net2 dll and sharepointeditor.dll should be been deployed to GAC all sorts of safe controls listed. i even went into the web.config and verified the assemblies were listed.
I hit any page that implements the ascx and EPIC FAIL. with a "cannot load type" error.
So my questions is. If I want to use the RadEditor Lite, add the emoticons like so:
What on earth do i need to do?
If need to tell my boss to buy this so be it. hell ill do it on my own credit card if thats the only way.
I just need it to work if possible.
I desperately need a rich textbox control that allows for emoticons without having to impale myself for a month(i dont have this time) writing one from scratch.
Okay, so i have gone through tutorials, downloaded the 91 meg PD and source samples. all reference an assembly and namespace i do not have. I reflect through the net2.dll and attempt to markup my page and add references to my code "Telerick.WebControls"
the MOSSRadEditor.wsp is deployed so the .net2 dll and sharepointeditor.dll should be been deployed to GAC all sorts of safe controls listed. i even went into the web.config and verified the assemblies were listed.
I hit any page that implements the ascx and EPIC FAIL. with a "cannot load type" error.
So my questions is. If I want to use the RadEditor Lite, add the emoticons like so:
| <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DigiFacesEditProject.ascx.cs" Inherits="DigiFacesProjects.DigiFacesEditProject" %> |
| <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> |
| <%@ Register TagPrefix="telerik" Namespace="Telerik.WebControls" Assembly="RadEditor.Net2, Version=7.3.6.0, Culture=neutral, PublicKeyToken=852c9eb6525c1b53" %> |
| <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %> |
| <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %> |
| <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %> |
| <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %> |
| <style type="text/css"> |
| * { |
| margin: 0; |
| padding: 0; |
| } |
| body, html { |
| margin: 0; |
| padding: 0; |
| width: 100%; |
| height: 100%; |
| } |
| #main { |
| width: 100%; |
| height: 100%; |
| background-color: #FFFFFF; |
| } |
| h1 { |
| font: 21px Arial, Helvetica, sans-serif; |
| font-weight: bold; |
| color: #000000; |
| } |
| #header { |
| width: 570px; |
| height: 40px; |
| border-bottom: 2px solid silver; |
| margin: 15px 0 0 15px; |
| } |
| #form { |
| margin: 8px 0 15px 15px; |
| } |
| .text_cell { |
| width: 110px; |
| padding-left: 3px; |
| height: 35px; |
| } |
| .label { |
| font: 12px Arial, Helvetica, sans-serif; |
| color: #000000; |
| } |
| </style> |
| <script type="text/javascript"> |
| function OnClientCommandExecuting(editor, args) |
| { |
| var name = args.get_name(); |
| var val = args.get_value(); |
| if (name == "Emoticons") |
| { |
| editor.pasteHtml("<img src='" + val + "'>"); |
| //Cancel the further execution of the command as such a command does not exist in the editor command list |
| args.set_cancel(true); |
| } |
| } |
| </script> |
| <table cellpadding="0" cellspacing="0" border="0" id="main"> |
| <tr> |
| <td class="header" align="left" valign="top"> |
| <table id="header" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td align="left" valign="top"> |
| <h1>Project Details</h1> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table id="form" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td align="left" valign="top"> |
| <table cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" align="left" valign="middle"> |
| <asp:Label runat="server" CssClass="label" id="ProjectNameLabel"></asp:Label> |
| </td> |
| <td align="left" valign="middle"> |
| <asp:TextBox CssClass="label" Width="210" runat="server" id="ProjectNameTextBox"></asp:TextBox> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td style="width: 100px; padding-left: 3px;" align="left" valign="middle"> |
| <asp:Label CssClass="label" runat="server" Text="Project Type" id="ProjectTypeLabel"></asp:Label> |
| </td> |
| <td align="left" valign="middle"> |
| <asp:RadioButtonList CellSpacing="10" CssClass="label" runat="server" id="ProjectTypeRadioButtonList" RepeatDirection="Horizontal"> |
| </asp:RadioButtonList> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td style="width: 100px; padding-left: 3px;" align="left" valign="middle"> |
| <asp:Label runat="server" CssClass="label" Text="Project Status" id="ProjectStatusLabel"></asp:Label> |
| </td> |
| <td align="left" valign="middle"> |
| <asp:RadioButtonList CssClass="label" CellSpacing="10" RepeatDirection="Horizontal" runat="server" id="ProjectStatusRadioButtonList"> |
| </asp:RadioButtonList> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" align="left" valign="middle"> |
| <asp:Label runat="server" CssClass="label" Text="Start Date" id="StartDateLabel"></asp:Label> |
| </td> |
| <td align="left" valign="middle"> |
| <SharePoint:DateTimeControl DateOnly="true" IsRequiredField="true" ID="StartDatePicker" runat="server"></SharePoint:DateTimeControl> |
| </td> |
| <td align="left" valign="middle"> |
| <asp:Label style="margin: 0 20px 0 20px;" runat="server" Text="End Date" id="EndDateLabel" CssClass="label"></asp:Label> |
| </td> |
| <td align="left" valign="middle"> |
| <SharePoint:DateTimeControl DateOnly="true" IsRequiredField="true" ID="EndDatePicker" runat="server"></SharePoint:DateTimeControl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" align="left" valign="middle"> |
| <asp:Label CssClass="label" runat="server" Text="User Limit" id="UserLimitLabel"></asp:Label> |
| </td> |
| <td align="left" valign="middle"> |
| <asp:TextBox CssClass="label" runat="server" id="UserLimitTextbox" Width="40"></asp:TextBox> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" align="left" valign="middle"> |
| <asp:Label CssClass="label" runat="server" Text="Project Active For:" id="ProjectActiveForLabel"></asp:Label> |
| </td> |
| <td align="left" valign="middle"> |
| <asp:DropDownList runat="server" id="ProjectActiveForDropDownList" CssClass="label"></asp:DropDownList> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td style="height: 35px; padding-left: 3px;" align="left" valign="middle"> |
| <asp:Label CssClass="label" runat="server" Text="Profiles:" id="ProfilesLabel"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-left: 20px;" align="left" valign="top"> |
| <asp:RadioButtonList CellSpacing="10" CssClass="label" runat="server" id="PrivateProfilesRadioButtonList"> |
| </asp:RadioButtonList> |
| </td> |
| <td style="padding-left: 20px;" align="left" valign="top"> |
| <asp:RadioButtonList CellSpacing="10" CssClass="label" runat="server" id="ProfilesPhotosRadioButtonList"> |
| </asp:RadioButtonList> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table style="width: 400px;" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td style="padding: 10px 0 4px 3px;" align="left" valign="middle"> |
| <asp:Label CssClass="label" runat="server" id="OptionalAdditionalFieldsLabel"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-left: 3px; height: 35px;" align="left" valign="middle"> |
| <asp:TextBox Width="150" CssClass="label" runat="server" id="field1"></asp:TextBox> |
| |
| <asp:TextBox Width="150" runat="server" id="field2" CssClass="label"></asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-left: 3px; height: 25px;" align="left" valign="middle"> |
| <asp:TextBox Width="150" CssClass="label" runat="server" id="field3"></asp:TextBox> |
| |
| <asp:TextBox Width="150" CssClass="label" runat="server" id="field4"></asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-left: 3px; height: 35px;" align="left" valign="middle"> |
| <asp:TextBox Width="150" CssClass="label" runat="server" id="field5"></asp:TextBox> |
| |
| <asp:TextBox Width="150" CssClass="label" runat="server" id="field6"></asp:TextBox> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table style="margin: 15px 0 15px 0; width: 400px;" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td style="width: 110px; padding-left: 3px;" align="left" valign="top"> |
| <asp:Label CssClass="label" runat="server" id="PrimaryPMLabel" Text="Primary PM"></asp:Label> |
| </td> |
| <td align="left" valign="top"> |
| <asp:Label CssClass="label" runat="server" Text="This section determines which Project Manager Profile displays on the Project Main Page." id="PrimaryPMDescriptionLabel"></asp:Label> |
| <br /> |
| <asp:DropDownList CssClass="label" runat="server" id="PrimaryPMDropDownList"></asp:DropDownList> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table style="margin: 0 0 15px 3px;" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" style="padding: 10px 0 0 0;" align="left" valign="top"> |
| <asp:CheckBox CssClass="label" runat="server" Text=" Photo Library" id="PhotoLibraryCheckBox"></asp:CheckBox> |
| </td> |
| <td style="width: 330px; padding: 10px 0 0 0;" align="left" valign="top"> |
| <asp:Label CssClass="label" runat="server" Text="If selected, a Photo Library allows Participants to upload photos relevant to a Project. Only Project Managers will be able to see and access these photos." id="PhotoLibraryCheckBoxDescriptionLabel"></asp:Label> |
| <br /> |
| <br /> |
| <asp:TextBox CssClass="label" Width="330" Height="30" runat="server" id="UserDefinePhotoInstructions"></asp:TextBox> |
| </td> |
| <td align="left" valign="top"> |
| <asp:RadioButtonList CellSpacing="10" CssClass="label" runat="server" id="PhotoLibraryAccessibleByRadioButtonList"> |
| <asp:ListItem Text="Photo Library Accessible to All Participants" Value="Photo Library Accessible to All Participants"></asp:ListItem> |
| <asp:ListItem Text="Photo Library to PM's Only" Value="Photo Library to PM's Only"></asp:ListItem> |
| </asp:RadioButtonList> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table style="margin-top: 10px;" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" align="left" valign="top"> |
| <asp:Label CssClass="label" runat="server" Text="Introduction" id="IntroductionLabel"></asp:Label> |
| </td> |
| <td align="left" valign="top"> |
| <telerik:RadEditor runat="server" ID="RadIntro" OnClientCommandExecuting="OnClientCommandExecuting"> |
| <tools> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="InsertCustomDate" Text="Insert Custom Date" /> |
| <telerik:EditorDropDown Name="Emoticons" Text="Emoticons" ItemsPerRow="3" PopupWidth="90" PopupHeight="90"> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil1.gif' />" value="./Emoticons/smil1.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil2.gif' />" value="./Emoticons/smil2.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil3.gif' />" value="./Emoticons/smil3.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil4.gif' />" value="./Emoticons/smil4.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil8.gif' />" value="./Emoticons/smil8.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil6.gif' />" value="./Emoticons/smil6.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil7.gif' />" value="./Emoticons/smil7.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil9.gif' />" value="./Emoticons/smil9.gif" /> |
| <telerik:EditorDropDownItem Name ="<img src='./Emoticons/smil11.gif' />" value="./Emoticons/smil11.gif" /> |
| </telerik:EditorDropDown> |
| </telerik:EditorToolGroup> |
| </tools> |
| </telerik:RadEditor> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table style="margin-top: 25px;" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" align="left" valign="top"> |
| <asp:Label CssClass="label" runat="server" Text="Goals" id="GoalsLabel"></asp:Label> |
| </td> |
| <td align="left" valign="top"> |
| <SharePoint:InputFormTextBox ID="GoalsRichTextBox" runat="server" RichTextMode="FullHtml"></SharePoint:InputFormTextBox> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <table style="margin-top: 25px;" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td class="text_cell" align="left" valign="top"> |
| <asp:Label CssClass="label" runat="server" Text="Participant <br /> Criteria" id="ParticipationCriteriaLabel"></asp:Label> |
| </td> |
| dard <td align="left" valign="top"> |
| <SharePoint:InputFormTextBox ID="ParticipationCriteriaRichTextBox" runat="server" RichTextMode="FullHtml" ></SharePoint:InputFormTextBox> |
| </td> |
| <td align="left" valign="bottom"> |
| |
| <asp:Button runat="server" Text=" Cancel " id="CancelButton" /> <asp:Button runat="server" Text=" Save " id="SaveButton"></asp:Button> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
What on earth do i need to do?
If need to tell my boss to buy this so be it. hell ill do it on my own credit card if thats the only way.
I just need it to work if possible.
I desperately need a rich textbox control that allows for emoticons without having to impale myself for a month(i dont have this time) writing one from scratch.