This is a migrated thread and some comments may be shown as answers.
Height not being applied correctly?
6 Answers 37 Views
This is a migrated thread and some comments may be shown as answers.
bradley baker
Top achievements
Rank 1
bradley baker asked on 12 Oct 2009, 08:36 PM
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 
 

6 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 15 Oct 2009, 02:39 PM
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.
0
McKinzie
Top achievements
Rank 1
answered on 15 Oct 2009, 05:36 PM
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
0
Fiko
Telerik team
answered on 20 Oct 2009, 02:49 PM
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.
0
bradley baker
Top achievements
Rank 1
answered on 20 Oct 2009, 02:55 PM
My code is listed above in the first post.
0
Fiko
Telerik team
answered on 23 Oct 2009, 10:50 AM
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.
0
McKinzie
Top achievements
Rank 1
answered on 26 Oct 2009, 05:59 PM
My DOCTYPE tag turned out to be a little malformed.  Once I fixed it, the control started to behave normally.  Thanks for the tip.
Asked by
bradley baker
Top achievements
Rank 1
Answers by
Fiko
Telerik team
McKinzie
Top achievements
Rank 1
bradley baker
Top achievements
Rank 1
Share this question
or