Custom List Form & RadEditor

4 posts, 1 answers
  1. Gavin Pollock
    Gavin Pollock  avatar
    62 posts
    Member since:
    Jan 2005

    Posted 29 Sep 2008 Link to this post

    Hi there,

    We are trying to override the Default 'New Item' form for a SP List. We are doing this by implementing a Custom List Form for a SP List. We have enabled RadEditor to be used for editing items within SP.

    When we insert a Custom List Form the form fails. We receive the following error:

    [ArgumentNullException: Value cannot be null.

    Parameter name: value]

       System.Collections.CollectionBase.OnValidate(Object value) +2742430

       Telerik.WebControls.RadEditorUtils.ToolbarCollection.OnValidate(Object value) +9

       System.Collections.CollectionBase.System.Collections.IList.Remove(Object value) +37

       Telerik.WebControls.RadEditorUtils.ToolbarCollection.Remove(Toolbar toolbar) +5

       Telerik.SharePoint.ListFieldEditor.RadHtmlListField.OnLoad(EventArgs e) +442

       System.Web.UI.Control.LoadRecursive() +47

       System.Web.UI.Control.LoadRecursive() +131

       System.Web.UI.Control.LoadRecursive() +131

       System.Web.UI.Control.LoadRecursive() +131

       System.Web.UI.Control.LoadRecursive() +131

       System.Web.UI.Control.AddedControl(Control control, Int32 index) +318

       System.Web.UI.ControlCollection.Add(Control child) +146

       System.Web.UI.Control.AddParsedSubObject(Object obj) +38

       Microsoft.SharePoint.WebPartPages.WebPart.AddParsedSubObject(Object obj) +879

       Microsoft.SharePoint.WebPartPages.DataFormWebPart.CreateChildControls() +1036

       System.Web.UI.Control.EnsureChildControls() +87

       System.Web.UI.Control.PreRenderRecursiveInternal() +50

       System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62

       System.Web.UI.Control.PreRenderRecursiveInternal() +170

       System.Web.UI.Control.PreRenderRecursiveInternal() +170

       System.Web.UI.Control.PreRenderRecursiveInternal() +170

       System.Web.UI.Control.PreRenderRecursiveInternal() +170

       System.Web.UI.Control.PreRenderRecursiveInternal() +170

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041

    Also, when viewing the List Form within SharePoint Designer, the field control does not render and gives the error:
    "Failed to render "Description" column because of an error in the "Multiple lines of text" field type control. See details in log. Exception message: the RadControls folder was not found."

    Thanks!
    Gavin

  2. Answer
    George
    Admin
    George avatar
    859 posts

    Posted 01 Oct 2008 Link to this post

    Hi Gavin,

    Your custom list is probably using a basic html editor. In this case, the RadEditor tries to remove the second toolbar, called EnhancedToolbar, because these tools are not used in basic mode. You probably modified the default list tools file (ListToolsFile.xml) and removed the enhanced toolbar. When the editor tries to remove it now, you get the above error, because it does not exist.  Make sure that you have a toolbar called EnhancedToolbar in your list tools file:

    <tools name="EnhancedToolbar">
    </tools>

    I hope this helps.

    Sincerely,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Gavin Pollock
    Gavin Pollock  avatar
    62 posts
    Member since:
    Jan 2005

    Posted 03 Oct 2008 Link to this post

    Hi Greg,

    This was definitely part of the problem! I hadn't realised the RadEditor wasn't working at all over the whole site in Lists. So I resolved this and then it worked within my Custom List Form.

    That said, it still doesn't work within SP Designer, and can't render the control, but I'm not too concerned about that!

    Cheers
    Gavin
  4. George
    Admin
    George avatar
    859 posts

    Posted 06 Oct 2008 Link to this post

    Hi Gavin,

    I am glad that the problem is now resolved. About the SP Designer issue, I am not sure what do you mean with not working. Could you please open a support ticket and send me some screenshots that demonstrate the behavior. I will check it and do my best to provide a solution.

    Best regards,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top