Height not being applied correctly?

7 posts, 0 answers
  1. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 12 Oct 2009 Link to this post

    Ive set the height tag and it applies the height to some of the FileExplorer but it still extens another 500px or more below where I tell it to stop no matter what the height tag says.  Even applying a css with the height of the HTML/Form/body its still extanding past the area but it doesnt show (Though if there were items that went past the hight they wouldnt be viewable)

    Picture - http://mmo-rpg.com/fileexp.png

    <%@ Page Title="" Language="VB"  AutoEventWireup="false" CodeFile="mtr_files.aspx.vb" Inherits="bradford_mtr_mtr_files" %> 
    <html> 
    <head> 
    <script type="text/javascript">     
    function fileOpen(sender, args)     
    {  
        var wndMng = sender.get_windowManager();  
        wndMng.set_width(600); //set desired width     
        wndMng.set_height(400); //set desired height  
        wndMng.set_behaviors(Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);  
    }  
     
    </script>    
    </head> 
    <body> 
        <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Height="205px" 
            Skin="Office2007" VisibleControls="TreeView, Grid, Toolbar, ContextMenus" onclientfileopen="fileOpen">  
        <Configuration SearchPatterns="*.*"></Configuration> 
        </telerik:RadFileExplorer>   
        </form> 
    </body> 
    </html> 

    Imports System.IO  
     
    Partial Class bradford_mtr_mtr_files  
        Inherits System.Web.UI.Page  
     
        Protected Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Init  
     
            Dim heatcode As String = Request.QueryString("mtr_heatcode")  
            Dim folder As String()  
     
            If IO.Directory.Exists("c:\inetpub\wwwroot\bradford\mtr\mtr_docs\" + heatcode) = False Then 
                folder = New String() {"~/bradford/mtr/mtr_docs/"}  
                'IO.Directory.CreateDirectory("c:\inetpub\wwwroot\bradford\mtr\mtr_docs\" + heatcode)  
            Else 
                folder = New String() {"~/bradford/mtr/mtr_docs/" + heatcode}  
            End If 
     
            RadFileExplorer1.Configuration.ViewPaths = folder  
            RadFileExplorer1.Configuration.UploadPaths = folder  
            RadFileExplorer1.Configuration.DeletePaths = folder  
            RadFileExplorer1.Configuration.MaxUploadFileSize = 10485760  
        End Sub 
     
    End Class 
     
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 15 Oct 2009 Link to this post

    Hello Bradley,

    You are the first that reports such a behavior. Could you please open a new support ticket and send a runnable project that reproduces the problem? I will check it and do my best to provide a solutions.

    Kind regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. McKinzie
    McKinzie avatar
    3 posts
    Member since:
    Jul 2009

    Posted 15 Oct 2009 Link to this post

    Hi,

    I'm seeing the same results.  There appears to be a 487px block between the splitter control and the outside frame.  This only happens in IE8.  Firefox 3.5 renders the page correctly.  I have noticed that the page renders correctly if I open the Upload dialog, and then cancel out of it.

    Joe
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 20 Oct 2009 Link to this post

    Hi Joseph,

    Could you please open a new support ticket and send me the page that reproduces the problem? Once I have a better view over your setup, I will do my best to provide a working solution as soon as possible.

    All the best,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 20 Oct 2009 Link to this post

    My code is listed above in the first post.
  6. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 23 Oct 2009 Link to this post

    Hi Bradley,

    The problem is caused by the fact that the page does not contains a DOCTYPE declaration. Please note that our control are XHTML complaint and you need to specify the DOCTYPE in the page. I prepared an example, using your code and attached it to the page. The DOCTYPE used is the default one generated by the VS 2008.

    I hope this helps.

    Kind regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. McKinzie
    McKinzie avatar
    3 posts
    Member since:
    Jul 2009

    Posted 26 Oct 2009 Link to this post

    My DOCTYPE tag turned out to be a little malformed.  Once I fixed it, the control started to behave normally.  Thanks for the tip.
Back to Top