This is a migrated thread and some comments may be shown as answers.

Custom List Form & RadEditor

3 Answers 80 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Gavin Pollock
Top achievements
Rank 1
Gavin Pollock asked on 29 Sep 2008, 02:06 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 01 Oct 2008, 10:14 AM
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.
0
Gavin Pollock
Top achievements
Rank 1
answered on 03 Oct 2008, 09:42 AM
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
0
George
Telerik team
answered on 06 Oct 2008, 11:53 AM
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.
Tags
WebParts for SharePoint
Asked by
Gavin Pollock
Top achievements
Rank 1
Answers by
George
Telerik team
Gavin Pollock
Top achievements
Rank 1
Share this question
or