Strange Behavior in Sharepoint Webpart

3 posts, 1 answers
  1. Ronnie
    Ronnie avatar
    6 posts
    Member since:
    May 2008

    Posted 15 Jul 2009 Link to this post

    I've created a Sharepoint webpart that contains a RadFileExplorer, however there are a couple of issues in the way it renders.

    Firstly, immediately below the FileExplorer is a block of white space that seems to be a placeholder for the upload dialog. As soon as I show the upload dialog (by clicking the Upload toolbar button) and close it, the block of white space disappears. I've used IE developer tools to locate the code block and manually set the style of the upload dialog to 'display:none', but I'm unable to do so permanently via CSS, since this element doesn't have an associate class.

    Second bizarre issue is that the toolbar items and context menu items for Open and Rename are labelled "Common_Open" and "Common_Rename" respectively.

    Any assistance would be greatly appreciated!
  2. Answer
    Lini avatar
    2150 posts

    Posted 17 Jul 2009 Link to this post

    Hi Ronnie,

    Try adding the following line to your web part code:

    fileExplorer.Style.Add("overflow", "hidden");

    where fileExplorer is the RadFileExplorer control. This has been known to fix problems with the control's layout in MOSS pages. Also, try updating to a more recent build of the RadControls (the current version is 2009.2.701).

    If you have not done so already, you will also need to add the following fix for the file explorer's AJAX updates to work OK in MOSS:

    //fix for the ASP.NET AJAX UpdatePanel issue in MOSS 
    Page.ClientScript.RegisterStartupScript(Page.GetType(), "AjaxUpdatePanelFix""_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;"true); 

    The wrong localization (Common_Rename) can happen if you have an older version of the RadEditor.Dialogs.resx file in your MOSS web site's App_GlobalResources folder. Either delete the old resource files or update them to the RadControls version you are using at the moment.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Ronnie
    Ronnie avatar
    6 posts
    Member since:
    May 2008

    Posted 17 Jul 2009 Link to this post

    Lini... I'm completely indebted to you - you've resolved both of my issues!

    Adding fileExplorer.Style.Add("overflow", "hidden"); to my code has resolved the layout issue, and updating the resx file has corrected the localization issue.

    Thanks again!
Back to Top