webpart troubles

6 posts, 0 answers
  1. Gian-Franco Salvato
    Gian-Franco Salvato avatar
    11 posts
    Member since:
    Dec 2006

    Posted 16 Nov 2007 Link to this post

    hi all

    try to add telerik editor webpart into sharepoint webpart area.
    installation ok - can use editor in lists over the site feature.

    always got this exception:
    -----------------------------
    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.RadEditorUtils.RadControl.RenderRuntimeSkin() +14
       Telerik.RadEditorUtils.RadControl.Page_PreRenderComplete(Object sender, EventArgs e) +10
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2058052
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
    -----------------------------
    after this, page cannot be accessed...any hints.

    thx a lot
    tom
    p.s. version 4.4.0

  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 19 Nov 2007 Link to this post

    Hi ,

    Do you have a code block (<%= ... %>) in your page header? Our control tries to add its CSS styles in the page header. The head tag should have a runat="server" attribute and there should be no code blocks inside. If possible, send us the ASPX code for your web part page so we can review it here.

    Also, verify that the skin, which is set in the ConfigFile.xml file is present in the RadControls/Editor/Skins/ folder.

    Greetings,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  3. Gian-Franco Salvato
    Gian-Franco Salvato avatar
    11 posts
    Member since:
    Dec 2006

    Posted 19 Nov 2007 Link to this post

    hi

    yeah - here is the aspx code:
    -----------------------------------
    <head id="HEAD1" runat="server">
            <SharePoint:BooleanField ID="PrintView" FieldName="PrintView" runat="server" Visible="false"></SharePoint:BooleanField>
            <SharePoint:RobotsMetaTag ID="RobotsMetaTag1" runat="server" Visible="false"/>
            <Sharepoint:CssLink ID="CssLink1" runat="server"/>
            <Content:Header ID="ucContenHeader" Runat="server"/>
               <Js:Default ID="ucJsDefault" Runat="server"/>
            <ScriptLink language="javascript" name="core.js" Defer="true" runat="server"/>
            <CustomJSUrl runat="server"/>
        </head>
    ---------------
    can it be a problem when there are multiple controls in the header?
    skin is present in the directory...
    hope help you to find troubles.

    regards
    tom
  4. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 21 Nov 2007 Link to this post

    Hi Tom,

    Have you fixed the problem yet?
     I tried to recreate the scenario, but noticed that some of the code in your head tag is custom user controls.

    If you still have the same problem, you can try two things:

    1) try removing the runat="Server" attribute from the head tag
    2) try removing some lines from the head tag and see which one is causing the trouble

    Sincerely yours,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Gian-Franco Salvato
    Gian-Franco Salvato avatar
    11 posts
    Member since:
    Dec 2006

    Posted 22 Nov 2007 Link to this post

    hi lini

    found problem:
    to prevent huge html code (or <table></table>), we render the control "by hand".
    so, when we execute also following command:
    ---------
    ....WebParts[i].RenderControl(htw);
    ---------
    when trying render telerik control into the stringwriter htw, we get this error.
    any hints to resolve this issue?

    regards
    tom
  6. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 22 Nov 2007 Link to this post

    Hi Tom,

    Where do you create the Editor web part control? If you create it dynamically, try using the CreateChildControls method for your controls if it is in a later stage of the lifecycle now (load or render).

    Sincerely yours,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top