Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
218 views
I am having trouble formatting one column in the grouped footer.  
I can access the GridDataItems by "item" or "e" but I have NO idea how to access the grouped footer items and change their style.


Below is what I have for code in regards to exporting to Excel and formatting the GridDataItems, but I need to format the GroupedFooterItems.

 
 protected void RadGrid1_ExcelExportCellFormatting(object source, ExcelExportCellFormattingEventArgs e)  
    {  
        GridDataItem item = e.Cell.Parent as GridDataItem;  
        item.Style["background-color"] = "#ffffff";  
        e.Cell.Style["text-align"] = "center";  
    } 

 Help please!

Mike
Top achievements
Rank 1
 answered on 10 Jun 2010
0 answers
154 views
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Telerik.Web.Examples.TreeView.DirectoryStructure.DefaultVB" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!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" > 
<head runat="server">  
    <title>Patient Satisfaction Reports & Surveys</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        &nbsp;<telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeExpand="RadTreeView1_NodeExpand" DataFieldParentID="Description">  
            <Nodes> 
                <telerik:RadTreeNode runat="server" ExpandMode="ServerSideCallBack" 
                    Text="Patient Satisfaction Reports &amp; Surveys" Target="_parent">  
                </telerik:RadTreeNode> 
            </Nodes> 
            <DataBindings> 
                <telerik:RadTreeNodeBinding Target="_parent" ExpandMode="ServerSideCallBack" /> 
            </DataBindings> 
        </telerik:RadTreeView> 
        &nbsp;<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <br /> 
        <br /> 
        &nbsp;</div> 
    </form> 
</body> 
</html> 
I am having issues pulling data (folder&files) from a network server share.  Can someone look at my code behind and help?  I have also attached my source code as well.

Imports System  
Imports System.IO  
 
Imports Telerik.Web.UI  
 
Namespace Telerik.Web.Examples.TreeView.DirectoryStructure  
 
    Partial Public Class DefaultVB  
        Inherits System.Web.UI.Page  
 
        Private ReadOnly KnownExtensions As String() = New String() {"aspx", "asmx", "cs", "vb", "xml", "ascx", _  
         "jpg", "png", "gif", "html", "pdf"}  
 
        Private Sub BindTreeToDirectory(ByVal virtualPath As String, ByVal parentNode As RadTreeNode)  
            Dim physicalPath As String = Server.MapPath(virtualPath)  
            Dim directories As String() = Directory.GetDirectories(physicalPath)  
            For Each directory As String In directories  
                Dim node As New RadTreeNode(Path.GetFileName(directory))  
                node.Value = virtualPath + "/" + Path.GetFileName(directory)  
                node.ImageUrl = "~/TreeView/Img/Vista/folder.png" 
                node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack  
                parentNode.Nodes.Add(node)  
            Next  
 
            Dim files As String() = Directory.GetFiles(physicalPath)  
            For Each file As String In files  
                Dim node As New RadTreeNode(Path.GetFileName(file))  
                Dim extension As String = Path.GetExtension(file).ToLower().TrimStart("."c)  
 
                If Array.IndexOf(KnownExtensions, extension) > -1 Then  
                    node.ImageUrl = "~/TreeView/Img/Vista/" + extension + ".png"  
                Else  
                    node.ImageUrl = "~/TreeView/Img/Vista/unknown.png" 
                End If  
 
                parentNode.Nodes.Add(node)  
            Next  
        End Sub  
 
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load  
            If Not Page.IsPostBack Then  
                Dim rootNode As New RadTreeNode("8000")  
                rootNode.Value = "2009" 
                rootNode.ImageUrl = "~/TreeView/Img/Vista/folder.png" 
                rootNode.Expanded = True 
                rootNode.SelectedImageUrl = True 
                rootNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack  
                RadTreeView1.Nodes.Add(rootNode)  
            End If  
        End Sub  
 
        Protected Sub RadTreeView1_NodeExpand(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs)  
            BindTreeToDirectory(e.Node.Value, e.Node)  
        End Sub  
 
    End Class  
 
End Namespace 
CliffE
Top achievements
Rank 1
 asked on 10 Jun 2010
0 answers
159 views
Imports System  
Imports System.IO  
 
Imports Telerik.Web.UI  
 
Namespace Telerik.Web.Examples.TreeView.DirectoryStructure  
 
    Partial Public Class DefaultVB  
        Inherits System.Web.UI.Page  
 
        Private ReadOnly KnownExtensions As String() = New String() {"aspx", "asmx", "cs", "vb", "xml", "ascx", _  
         "jpg", "png", "gif", "html", "pdf"}  
 
        Private Sub BindTreeToDirectory(ByVal virtualPath As String, ByVal parentNode As RadTreeNode)  
            Dim physicalPath As String = Server.MapPath(virtualPath)  
            Dim directories As String() = Directory.GetDirectories(physicalPath)  
            For Each directory As String In directories  
                Dim node As New RadTreeNode(Path.GetFileName(directory))  
                node.Value = virtualPath + "/" + Path.GetFileName(directory)  
                node.ImageUrl = "~/TreeView/Img/Vista/folder.png" 
                node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack  
                parentNode.Nodes.Add(node)  
            Next  
 
            Dim files As String() = Directory.GetFiles(physicalPath)  
            For Each file As String In files  
                Dim node As New RadTreeNode(Path.GetFileName(file))  
                Dim extension As String = Path.GetExtension(file).ToLower().TrimStart("."c)  
 
                If Array.IndexOf(KnownExtensions, extension) > -1 Then  
                    node.ImageUrl = "~/TreeView/Img/Vista/" + extension + ".png"  
                Else  
                    node.ImageUrl = "~/TreeView/Img/Vista/unknown.png" 
                End If  
 
                parentNode.Nodes.Add(node)  
            Next  
        End Sub  
 
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load  
            If Not Page.IsPostBack Then  
                Dim rootNode As New RadTreeNode("8000")  
                rootNode.Value = "2009" 
                rootNode.ImageUrl = "~/TreeView/Img/Vista/folder.png" 
                rootNode.Expanded = True 
                rootNode.SelectedImageUrl = True 
                rootNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack  
                RadTreeView1.Nodes.Add(rootNode)  
            End If  
        End Sub  
 
        Protected Sub RadTreeView1_NodeExpand(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs)  
            BindTreeToDirectory(e.Node.Value, e.Node)  
        End Sub  
 
    End Class  
 
End Namespace  
 
 
 
 


I am having issues pulling folders/files from a server share into RadTreeView.  Can someone look at my vb code and help?
CliffE
Top achievements
Rank 1
 asked on 10 Jun 2010
2 answers
304 views
Hello,

I am populating the Grid with xml dynamically from server side.
I have gone through this blog: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx
and looked at the filtering mechanism.

Is it possible for me to implement search (within the grid results) instead of filtering my column? Please guide me through this (considering that we don't know the column names until they are displayed).

Thanks
smith spd
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
118 views
I have been using RadWindow for some time now in various applications and with no problems.  I have successfully sent parm's to the window and received values back on close.  I only say this so you know I've been using it for some time and am not a complete newbie.

I have a RadWindow which I am trying to display from a user control (which is, of course, located on a web page which uses a master page).  When I display the window, resizing does not work, setting the title text value does not work, and setting the behaviors has no effect on the window that is displayed.

I can take exactly the same code, put it on another web page that does not use a user control or master page and it works fine.  Is there something about doing this from a user control that causes the RadWindow to behave improperly?

            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
            <Windows> 
                <telerik:RadWindow   
                    id="RadWindow2"   
                    runat="server" 
                    showcontentduringload="false" 
                    width="900px" 
                    height="100px" 
                    title="Telerik RadWindow" 
                    behaviors="Close">  
                </telerik:RadWindow> 
            </Windows> 
            </telerik:RadWindowManager> 
 
        function openy() {  
            radopen("UserControls/ARadWindowTest.aspx", "RadWindow2");  
        }  
 
<asp:LinkButton ID="LinkButton2" OnClientClick="openy(); return false;" runat="server">RadOpen</asp:LinkButton> 

The attached file contains a screen capture of the results of this action.  Please note that the RadWindow2 is defined as being 900 pixels wide, 100 pixels high, and containing a title of "Telerik RadWindow".

Is there some kind of problem with displaying a RadWindow from within a User Control?  Is there something you can see that I am doing wrong, because I have taken this same code to another page (without the user control) and it has worked perfectly.

Help, please!
Lynn
Top achievements
Rank 2
 answered on 10 Jun 2010
18 answers
272 views
I really would like to be able to crossfade images when using RadRotator in slide show mode.  But option doesn't exist.

My options are to use Flash (I really don't want to do that), to go out and buy another component, write it myself from scratch or figure out how to extend the Telerik script to do it.

I'd like to try the latter with some help from Telerik if possible.

Surely it is just a matter of stacking the images in one spot and then gradually changing opacity of the top image until the one below is completely revealed.  Then shuffle the top image's z-index to put it at the bottom of the stack, no?

And as far as opacity, I think there are only three CSS implementations I need to worry about:

1. Mozilla pre-CSS3 -> MozOpacity (a value between 0 and 1)
2. CSS3 compatible -> opacity (a value between 0 and 1)
3. IE -> filter(alpha=???)  where ??? is a value between 0 and 100

Of course, some browser don't support opacity.  They'll just ignore the dynamic changing of opacity in CSS and will change images when the top image is shuffled to the bottom of the stack.

Telerik: Can you help me get going?  I'll upload the code back to Telerik.com.
Coty
Top achievements
Rank 1
 answered on 10 Jun 2010
1 answer
146 views
I have a question regarding this style class.  I know that I can override this in my page to control the background opacity for modal radWindows by putting this in my page:

 

<style type="text/css">

 

 

.TelerikModalOverlay

 

{

 

  filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=90) !important;

 

 

  opacity: .9 !important;

 

 

  -moz-opacity: .9 !important;

 

}

 

</style>

However, is there any way to modify the background shading differently for different radwindows?  I have a scenario on a single page where I want the normal lightly shaded gray background (opacity=50) for one radwindow but I want a complete covering of the parent window (opacity=100) for another.  The above override will set the opacity the same for both.

Thanks in advance.

 

Petio Petkov
Telerik team
 answered on 10 Jun 2010
4 answers
742 views
Is it possable to change the "Max file size allowed:200.00 KB" from 200.00kb to something else? I have changed the the

 

Upload.MaxFileSize to something else but when i push the upload button it still tells me the max size is 200 kb. Thanks

Charles Faramarzi-rad
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
409 views
Hello there;
We have installed the latest version of the mosseditor in our sharepoint environment. We have ran into the max size issue when trying to upload , for example, wmv files. This particular file is 29 mbs.
I have followed suggestions to modify the Config.xml file <property name="MaxDocumentSize">512000</property>

Also I have modified, or tried to modify the maxRequestLength in our sharepoint web application , however, it was already set to 512000.  After performing these changes, my expectation was to be able to upload the file, however, that is not the case.

please help.

thanks
Charles


Charles Faramarzi-rad
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
346 views
I would like to be able to hide the 'refresh' button on every single radgrid on my site. I came across this page on how to hide the control manually, but if I've got a dozen radgrids on the site, it makes maintaining/adding new ones a pain. Is there some hidden property I can add to my asp skin file that would apply to all of the radgrids?
Clayton
Top achievements
Rank 1
 answered on 10 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?