Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
244 views
Hi

I have a long piece of text, I would like to be scrolled in a box. How can it be accomplished by RadRotator? It is not possible to split the text into smaller frames rotating through the frames, it all should be in only one frame.

Best regards,

Kasper Bergmann
Georgi Tunev
Telerik team
 answered on 17 Aug 2009
1 answer
196 views
Hello,
In the demo found here, the screen boundary detection does not seem to work when the menu open position is set to top left or top right. I tried this in IE6 and firefox. Is there away to fix this?
Thanks
Dimo
Telerik team
 answered on 17 Aug 2009
2 answers
361 views
Hello everybody, I have posted this question a few times on some different forums with know luck.  I am trying to upload a file to a specific folder based on treeview node selection.  Here is my code.  Can anybody help?  Thanks

Imports System.IO
Imports Telerik.Web.UI

 

Partial Public Class uploadfiles
    Inherits System.Web.UI.Page

   
  

    Protected Sub UploadButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles UploadButton.Click
        BindResults()
    End Sub

    Private Sub BindTreeToDirectory(ByVal dirPath As String, ByVal parentNode As RadTreeNode)
        Dim dirs As String() = Directory.GetDirectories(dirPath)
        Dim s As String
        For Each s In dirs

            Dim parts As String() = s.Split("\"c)
            Dim name As String = parts((parts.Length - 1))
            If name <> "Examples" Then
                Dim node As New RadTreeNode(name)
                node.ImageUrl = "Folder.gif"
                node.Value = name
                node.Category = "Folder"
                parentNode.Nodes.Add(node)

                BindTreeToDirectory(s, node)
            End If
        Next s

        Dim files As String() = Directory.GetFiles(dirPath)
        Dim fileNAme As String
        For Each fileNAme In files
            Dim parts As String() = fileNAme.Split("\"c)
            Dim name As String = parts((parts.Length - 1))
            Dim node As New RadTreeNode(name)
            Dim fi As New FileInfo(fileNAme)
            node.ImageUrl = "File.gif"
            node.Value = fi.Name & "@" & fi.Length.ToString() & "@" & fi.LastWriteTime.ToString()
            node.Category = dirPath & "\" & fi.Name

            parentNode.Nodes.Add(node)
        Next fileNAme
    End Sub

    Private Sub BindResults()
        Dim resultsExist As Boolean = RadUpload1.UploadedFiles.Count > 0
        lblNoResults.Visible = Not resultsExist
        rptReqults.Visible = resultsExist
        If resultsExist Then
            rptReqults.DataSource = RadUpload1.UploadedFiles
            rptReqults.DataBind()
        End If
      
        Dim rootFolder As String = Server.MapPath("~/filefolders/")
        Dim rootNode As New RadTreeNode(rootFolder)
        RadTree1.Nodes.Clear()
        rootNode.Text = "Software"
        rootNode.Value = Server.MapPath("~/filefolders/")
        rootNode.ImageUrl = "Folder.gif"
        rootNode.Category = "Folder"
        rootNode.Expanded = True
        RadTree1.Nodes.Add(rootNode)
        BindTreeToDirectory(rootFolder, rootNode)
        Dim uploadnode As RadTreeNode = RadTree1.FindNodeByText("RadTree1.SelectedNode.Text")
        uploadnode.Expanded = True
  End Sub

    Private Sub InitializeComponent()
        Dim nd As New DirectoryInfo(Server.MapPath(".") & "/filefolders/" & RadTree1.SelectedNode.Text & "/")
        If nd.Exists = False Then
            nd.Create()
        End If
        RadUpload1.TargetFolder = "~/filefolders/" & RadTree1.SelectedNode.Text & "/"

    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            'Dim rootFolder As String = ConfigurationManager.AppSettings("ParentFolderPath")
            Dim rootFolder As String = Server.MapPath("~/filefolders/")
            Dim rootNode As New RadTreeNode(rootFolder)
            rootNode.Text = "Santricity"
            rootNode.Value = Server.MapPath("~/filefolders/")
            rootNode.ImageUrl = "Folder.gif"
            rootNode.Category = "Folder"
            rootNode.Expanded = True
            RadTree1.Nodes.Add(rootNode)
            BindTreeToDirectory(rootFolder, rootNode)
            'RadUpload1.TargetFolder = "~/filefolders/" & ("Linux") & "/"

        End If

    End Sub
End Class

Bryan Davis
Top achievements
Rank 1
 answered on 17 Aug 2009
1 answer
113 views
I have a set of RadRotator items that has PNG images and when I use "Autoadvance" mode it still got the "Opacity=1" set when the first iteration finishes. This has caused the page unusable in IE. (Everyone knows that IE displays a dark background when PNG and Opacity setting are combined... :-( Firefox is perfect in this case)

I digged around and found that the script in "AnimationScript.js" towards the end of the file in "jMove.Prototye" there is a line that sets this opacity =1 and if we can some how make it to NOT to set it we should be fine.

This script is considered part of the framework I assume, but is there any way we can modify it or override it without having to ask telerik to fix it in the next release? 

Many thanks in advance,

Feng
Georgi Tunev
Telerik team
 answered on 17 Aug 2009
1 answer
79 views
Hello,

Our company is currently using the Telerik rad controls for ASP.NET AJAX and we noticed in IE8 that whenever you have a radpanel bar (like the one in the samples) in a page there tends to be issues with clicking on/in textboxes. When the cursor is placed in the textbox it blinks rapidly as if something is happening behind the scenes and occasionally we can't even type in the textboxes or characters will not show up. I know it sounds odd but just spent a day tracing through out application and when I removed the radpanelbar from the page the textbox/cursor behaved normally. When I added it back in the anomalies came back as well.

Thanks.
Paul
Telerik team
 answered on 17 Aug 2009
1 answer
147 views

Hello

According to the API available, it is possible to load the content file and the context menus dynamically by setting the following properties

·         ContentFile

·         ContextMenuContentFile

For e.g.

ContentFile="~/Examples/Programming/ContextMenu/tree.xml"

ContextMenuContentFile="~/Examples/Programming/ContextMenu/ContextMenus.xml"

But we are unable to find the properties in the TreeView control (please see the snapshot below)

Moreover we are able to load the ContentFile dynamically, using the LoadContentFile method as shown below; but the corresponding

LoadContextMenusXmlString is not available (Please see the snapshot below)

We have the following version

Telerik.Web.UI.dll       2009.1.311.35

Name:

Telerik.Web.UI.RadTreeView

Assembly:

Telerik.Web.UI, Version=2009.1.311.35

Please let me know if you need to more information.

Regards,
Abhishek

Abhishek Dixit
Top achievements
Rank 1
 answered on 17 Aug 2009
1 answer
136 views
I am trying to use the Rotator to display something like the sample here: http://demos.telerik.com/aspnet-ajax/rotator/examples/testimonial/defaultcs.aspx and want to report a bug I came across.

The problem I am having (and is duplicated in the above sample - although very subtle since the font size is small) is after the 1st "testimonial" is displayed (fonts look correct) subsequent text that is displayed has font changes (sort of like going from bold to normal). The larger the font size the more obvious it becomes.

It can easily be duplicated it by using the above sample demo page and increasing the font size so it becomes more apparent. This used to work fine in a much older build of the control. I'm not sure when it broke but happened to notice it when I started using this control again.

UPDATE: After downgrading to 2008 Q3 1314 build the problem disappeared. So the problem cropped up after that point.
Georgi Tunev
Telerik team
 answered on 17 Aug 2009
8 answers
289 views
Hi,

Is it possible that we can have nultiple person working at a time on one tabstrip with one person per pageview? Means onclick of other tab tabstrip remains intact and other tab opens with in tabstrip(which is diff page altogather) using RadTabstrip?

Manish

Paul
Telerik team
 answered on 17 Aug 2009
1 answer
150 views
I have a page with a radsplitter. On the left side there is a radpanel inside of it. The problem I am having is that if the radpanel grows bigger than the page, you can't scroll. I have scrolling enabled but it doesn't work. You can see my problem by expanding the first option "Live Music" under events here http://alpha.clickablecommunity.com/ here is my masterpage file and css
<%@ Master Language="VB" AutoEventWireup="false" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="sidepanel" TagName="sidebar" src="/ascx/leftMenu.ascx"%>
<%@ Register TagPrefix="loginDivTemplate" TagName="login" src="/ascx/loginTemplate.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ import namespace="System.Data" %>
<%@ import namespace="System.Data.Sql" %>
<%@ import namespace="System.Data.SqlClient" %>
<%@ import namespace="Telerik.Web.UI" %>
<head id="Head1" runat="server">
    <link href="ClickableCommunity.css" rel="stylesheet" type="text/css" />
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body id="MasterBody" runat="server" style="margin: 0px; height: 100%; overflow: hidden;"
    scroll="no">
    <form id="Form1" method="post" runat="server" style="height: 100%">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <asp:ContentPlaceHolder ID="header" runat="server">
    </asp:ContentPlaceHolder>
    <div id="loginDiv">
        <loginDivTemplate:login id="loginPanelContent" runat="server"></loginDivTemplate:login>
    </div>
    <div id="topDiv">
        <div id="image" class="topDivImage">
            <img src="images/logo.jpg" alt="Clickable Community Logo" width="200" height="75" />
        </div>
        <div id="viewMenu" class="viewMenu">
            Menu goes here
        </div>
    </div>
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" Width="100%"
        Height="100%" CssClass="AllContent" LiveResize="true">
        <telerik:RadPane ID="LeftRadPane1" runat="server" Width="220px" Scrolling="Both"
            BorderStyle="None" BorderSize="0">
            <div id="leftPanel">
                <sidepanel:sidebar id="leftPanelContent" runat="server"></sidepanel:sidebar>
            </div>
        </telerik:RadPane>
        <telerik:RadSplitBar runat="server" ID="RadSplitBar2" CollapseMode="Forward" EnableResize="false"
            ForeColor='Green' />
        <telerik:RadPane ID="RightRadPane1" runat="server" CssClass="RightPanelPadding" Scrolling="Both"
            BorderStyle="None" BorderSize="0">
            <asp:ContentPlaceHolder ID="MainContent" runat="server">
            
            </asp:ContentPlaceHolder>
        </telerik:RadPane>
        
    </telerik:RadSplitter>
    </form>
</body>
</html>

css page
body {
height:100%;
}
#leftPanel{
    display:inline;
    height:500px;
    width:220px;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
        
}
.loginLabel{
    padding-right: 10px;
    padding-bottom: 10px;
}
.loginTextBox{
    width: 120px;
}
.leftPanelContent{
    
}
#topDiv{
    height: 60px;
    border-bottom-width: 4px;
    border-bottom-color: Gray;
    border-bottom-style:groove;
        
}
#loginDiv{
    position: absolute;
    display:inline;
    right: 10px;
    top: 5px;
}
#menuDiv{
    position: absolute;
    padding-top: 75px;
    margin-left: auto;
    margin-right:auto;
}
.AllContent{
    border-right: none;
    
}
#MainContent{
    display:inline;
    height:500px;
    width:400px;
}
.displayInline{
    display: inline;
}
#divMap{
    height:480px;
    width:700px;
    border: groove 4px #EEEEEE;
    border-right: groove 4px #EEEEEE;
    margin-left: auto;
    margin-right: auto;
}
.RightPanelPadding
{
    position: relative;
    height:500px;
    padding-left: 35px;
    padding-top:10px;
    
}
.topDivImage{
position: absolute;
top: 0;
left: 0;
display:inline;
width:220px;
}
.viewMenu{
padding-left:220px;
margin-right:auto;
margin-left:auto;
text-align:center;
width:800px;
vertical-align:bottom;
padding-top: 46px;
}
.emptyTextboxText{

    font-style:italic;
    font-size:10px;
    color: #D8D8D8;

}
Svetlina Anati
Telerik team
 answered on 17 Aug 2009
1 answer
151 views
Please Help??

How to Rotate a "static text" in Rotator ???
Georgi Tunev
Telerik team
 answered on 17 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?