Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
139 views
Hi Folks - Just wanted to know how you go about positioning the value labels of a chart in code behind.

i know you can position them in design view but i really want to position them all in code behind
i would need hem positioned in the middle of the bar if possible.


Thanks Folks
Dwight
Telerik team
 answered on 17 Jun 2009
1 answer
130 views
Hi Telerik Team,

We are having issues in Grid Columns and Items alignment. Actually, we are doing alignment of columns and items on Grid's PreRender Event but that is not getting aligned. If we do the above process in Grid's ItemDataBound Event then this event is getting fired for every record(Item) in the DataSource which is degrading the System's Performance.

Please suggest how to do the above process while keeping System's Performance up-to-date.

Thanks,
Rajesh
Shinu
Top achievements
Rank 2
 answered on 17 Jun 2009
1 answer
84 views
How would I display blank/no value if same values are repeated in rows for a column.

For instance if I have a grid with below values

John 200
John 400
John 350
Peter 200
Peter 350
Gary 100
John 400

I would like to display like
John 200
        400
        350
Peter 200
         350
Gary 100
John 400

Thanks
Princy
Top achievements
Rank 2
 answered on 17 Jun 2009
4 answers
203 views
Greetings, sorry to bring this issue up again. I have been researcing it for much too long now and need to ask for help.

I am demo'ing the RadControls for ASP.NET AJAX and have run into this error on my server. I am developing on a Vista Laptop with MS Visual Web Developer 2008 Express (demo'ing that too) and the trial version of RadControls. I have written a very excellent program that runs fine on my computer. The problem is when I build the site and upload the files to my server. It's like IIS cannot locate the telerik dlls in the /Bin folders.

Other Info:
I have a website set up under IIS with the /Bin folder in the root directory. My files I am playing with are also located in this directory. I have ASP.NET v3.5 installed. I found a forum about adding the dlls into the GAC but when I try to do that, it tells me the names aren't "strong."

Does anyone have a clue what I am doing wrong? I'm a programmer really so I am sure I've forgotten something or bumbled something up on the server. Any help and direction would be greatly appreciated.
Darren
Top achievements
Rank 1
 answered on 17 Jun 2009
1 answer
144 views

I am fairly new to Rad controls. When i try to bind the rad menu to the hierarchial data source it is not displaying in the hierarchial order but instead showed all the items in a single row.

 

I tried to run the sample code from telerik site. Even with the sample the rad menu shows the items in single row instead of hierarchial manner. Please help me in this...

ASPX Code:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<%@ Page Language="c#" CodeFile="Default.aspx.cs" AutoEventWireup="true"   
Inherits="Telerik.Web.Examples.Menu.HierarchicalBinding.Default"%> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
</head> 
<body class="BODY">  
    <form id="mainForm" method="post" runat="server">  
          
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">  
        </telerik:RadStyleSheetManager> 
       <telerik:RadMenu ID="RadMenu1" runat="server" EnableTheming="true"></telerik:RadMenu> 
 
    </form> 
</body> 
</html> 
CS Code:
using System;  
using System.Collections.Generic;  
using System.Configuration;  
using System.Data;  
using System.Data.SqlClient;  
using System.Web.UI.WebControls;  
 
using Telerik.Web.UI;  
using System.Collections;  
 
namespace Telerik.Web.Examples.Menu.HierarchicalBinding  
{  
    public partial class Default : System.Web.UI.Page  
    {  
        internal class SiteDataItem  
        {  
            private string _text;  
            private string _url;  
            private int _id;  
            private int? _parentId;  
 
            public string Text  
            {  
                get { return _text; }  
                set { _text = value; }  
            }  
 
            public string Url  
            {  
                get { return _url; }  
                set { _url = value; }  
            }  
 
            public int ID  
            {  
                get { return _id; }  
                set { _id = value; }  
            }  
 
            public int? ParentID  
            {  
                get { return _parentId; }  
                set { _parentId = value; }  
            }  
 
            public SiteDataItem(int id, int? parentId, string text, string url)  
            {  
                _id = id;  
                _parentId = parentId;  
                _text = text;  
                _url = url;  
            }  
        }  
 
          
        private void BindToIEnumerable()  
        {  
            List<SiteDataItem> siteData = new List<SiteDataItem>();  
 
            siteData.Add(new SiteDataItem(1, 0, "All Sites", ""));  
            siteData.Add(new SiteDataItem(2, 1, "Search Engines", ""));  
            siteData.Add(new SiteDataItem(3, 1, "News Sites", ""));  
            siteData.Add(new SiteDataItem(4, 2, "Yahoo", "http://www.yahoo.com"));  
            siteData.Add(new SiteDataItem(5, 2, "MSN", "http://www.msn.com"));  
            siteData.Add(new SiteDataItem(6, 2, "Google", "http://www.google.com"));  
            siteData.Add(new SiteDataItem(7, 3, "CNN", "http://www.cnn.com"));  
            siteData.Add(new SiteDataItem(8, 3, "BBC", "http://www.bbc.co.uk"));  
            siteData.Add(new SiteDataItem(9, 3, "FOX", "http://www.foxnews.com"));  
 
            RadMenu1.DataTextField = "Text";  
            RadMenu1.DataNavigateUrlField = "Url";  
            RadMenu1.DataFieldID = "ID";  
            RadMenu1.DataFieldParentID = "ParentID";  
            RadMenu1.DataSource = siteData;  
            RadMenu1.DataBind();  
        }  
         
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
                BindToIEnumerable();  
 
            }  
        }  
 
        
    }  
}  
 
Madeshwaran
Top achievements
Rank 1
 answered on 16 Jun 2009
0 answers
108 views
I have a RadGrid where each item has a NestedViewTemplate so that the user can click on a row and it will expand to show the details for that item.  This was working fine for over a year, but recently I decided to update my controls to the current version (2009.1.527.35) and now, whenever I click on a row to expand it, then entire grid disappears and all I see is one horizontal line (could be the border?).  I've tried debugging by putting a breakpoint in the ItemCommand method for that grid, but it never gets there.  I have Ajaxified the grid, so I removed the Ajax to see if it was that, but it still does the same thing, even with a full postback. 

This page happens to be the most complex page in my entire application.  It includes a couple user controls and has code spread through several files including one Javascript file for client-side functions.  So it would be difficult to reproduce this in a sample project.  I did pull out the pertinent code and put it into a test page, but it worked fine in the test!  I also removed the reference to the Javascript file, but it still does the same thing.  If I had some idea of where to put a breakpoint, I'd be happy to debug it myself, but it doesn't seem to matter where I put it, it just doesn't touch the server-side code before it collapses into nothing...

UPDATE: Disregard, I just needed to add a NeedDataSource for the grid and everything's working now...
Software
Top achievements
Rank 1
 asked on 16 Jun 2009
0 answers
118 views
Hi,
I Use ToolTip in RadGrid client side calling webservices as demo sample (Webservices and RadGrid). I have some problems to open the ToolTip ( many times closed before open completed if position right), my webservices are called many times generating overload of server and my style come so late generating one flash effect.
-I need some help to generate only one open event on onmouseover and close my tooltip onmouseout.
-how perform the loading time of style sheet client side (no code allowed backside).
Thanks for help, Regards.

<script type="text/javascript">     
       function DisplayDetails() 
        { 
            var divDetails = document.getElementById('divDetails'); 
            divDetails.style.display = "inline"; 
        } 
        function CloseActiveToolTip() 
        { 
            setTimeout(function(){ 
                var tooltip = Telerik.Web.UI.RadToolTip.getCurrent(); 
                if (tooltip) tooltip.hide(); 
            }, 1000); 
        } 
        function showToolTip(element,cntid) 
        { 
           var tooltipManager = $find("<%= RadToolTipManager1.ClientID %>"); 
           if (!tooltipManager) return; 
           var tooltip = tooltipManager.getToolTipByElement(element); 
           if (!tooltip) 
           { 
               tooltip = tooltipManager.createToolTip(element); 
               tooltip.set_value(cntid); 
           } 
           element.onmouseover = null; 
           tooltip.show(); 
        } 
 
</script> 
 

 
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="right" 
            RelativeTo="Element" Width="350px" Height="260px" Animation="Resize" HideEvent="LeaveToolTip" 
            Skin="WebBlue"> 
            <WebServiceSettings Path="~/WebService.asmx" Method="GetCartesPubReg" Runat="Server" /> 
    </telerik:RadToolTipManager> 

My gridTemplate
<telerik:ClientTemplate Name="View" runat="server"> 
            <a href="ItemViewUrl" onmouseover="showToolTip(this,'{#ID#}');">{#MetaFields.Title#}</a> 
        </telerik:ClientTemplate> 



Pierre
Top achievements
Rank 1
 asked on 16 Jun 2009
1 answer
181 views

OK you may be confused by the title of the post, but I didn't really know how to express a good title for the post.

Here's what I have, I've got a nested grid in a grid and on events such as item_databound of the nested grid I need to find the parent row of the nested grid.

I've found a convoluted way in finding it, but I'm sure there's a simpler way, here's how I do it on the item_databound:

DirectCast(e.Item.Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem

I have a similar convoluted way in getting this in a rowdrop event from the nested grid's

DirectCast(e.DragedItems(0).Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem

Here's a quick example of what I'm doing:

Public Sub rdgInvoices_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) 'Handles rdgInvoices.ItemDataBound  
        Static Total As Double  
 
        If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then  
(e.Item.Parent, "TelerikForAjax")  
 
            Dim gdiParent As Telerik.Web.UI.GridDataItem = DirectCast(e.Item.Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem  
 
            If DirectCast(gdiParent.FindControl("lblDirectExpense"), Label).Text = "1" OrElse DirectCast(e.Item.FindControl("lblDirectExpense"), Label).Text = "1" Then  
                With e.Item  
                    DirectCast(.FindControl("lblInvoice"), Label).Visible = False 
                    With DirectCast(.FindControl("txtInvoice"), TextBox)  
                        .Visible = True 
                        ' ''On Error Resume Next  
                        ' ''.Attributes.Remove("updateDE")  
                        ' ''On Error GoTo 0  
                        ' ''.Attributes.Add("onChange", "updateDE('" & directcast(e.Item.FindControl("txtInvoice"), Label).ClientID & "', '" & & "')")  
                    End With  
                    Dim rdg As Telerik.Web.UI.GridDataItem = ParentRow(e.Item.Parent, "TelerikForAjax")  
 
                    With DirectCast(.FindControl("txtAmount"), TextBox)  
                        .Attributes.Add("onChange", "updateDE('" & DirectCast(e.Item.FindControl("lblAmount"), Label).ClientID & "','" & DirectCast(.FindControl("txtAmount"), TextBox).ClientID & "', '" & DirectCast(rdgCategoryBudget.Items(CurrentCategoryRow).FindControl("txtReconciled"), TextBox).ClientID & "', '" & DirectCast(rdg.FindControl("txtReconciled"), TextBox).ClientID & "', '" & DirectCast(rdgCategoryBudget.Items(CurrentCategoryRow).FindControl("lblSavings"), Label).ClientID & "', '" & DirectCast(rdgCategoryBudget.Items(CurrentCategoryRow).FindControl("lblTotal"), Label).ClientID & "')")  
                        .ReadOnly = Not AllowReconciliation  
                    End With  
 
                End With  
      End If  
 
End Sub 
Alex
Top achievements
Rank 2
 answered on 16 Jun 2009
10 answers
338 views
I'm using a RadGrid inside a RadAjaxManager that has its LoadingPanelID="LoadingPanel1".  This is on a page that is part of master page setup, but is NOT the master page.

The master page is the page where the loading panel is defined, as follows:
<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Transparency="75" 
        MinDisplayTime="500" BackColor="#E0E0E0">  
        <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' 
            alt="Loading..." style="border: 0; margin-top: 40px;" /> 
    </telerik:RadAjaxLoadingPanel> 

This control works great nearly all the time except when using the filtering options on said grid.  What happens, is that sometimes, not all the time, when you specify a filter on a column, the Loadingpanel comes up fine, the grid filter results are shown, and control is returned to the browser, however, the loading panel never goes away.  It happens I'd say about 1 in 5 times, the other times its fine. 

Am I using the panel wrong, or is there some known issue?  I'm using 2008Q3 version of the controls.

Thanks,
Marty
David Tsao
Top achievements
Rank 1
 answered on 16 Jun 2009
2 answers
98 views
Hi,
          I am generating dock windows dynamically and trying to put them on a rad sliding pane using a placeholder but the problem i am facing is that if I generate three windows they exceed the margins.The dock windows are exceeding the boundaries of the pane and are not being rendered within the pane but outside.
Please let me know if there is a solution to this problem.

Thanks.
Ajit
ajit
Top achievements
Rank 1
 answered on 16 Jun 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?