Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
390 views
Hello

I'm using rad q3 2008

I would like to implement what i think must be a fairly common scenario but i can't find anything on how to do it in the documentation.

I have a datagrid and one of the columns contains a hyperlink. When the user hovers over the hyperlink I would like a tooltip to be displayed.

The tooltip inside the radgrid row is created dynamically so I don't know how to add it to the target controls collection of the tool tip manager

I tried this but to no avail in the item data bound event of the grid

 

Dim tip As RadToolTip = e.Item.FindControl("tipStartAddress")

 

RadToolTipManager1.TargetControls.Add(tip.ClientID,

True)

Furthermore once i have got this bit to work I would like to have the tooltip load its content on demand. I really don't know how i would trigger an OnAjaxUpdate event for a tooltip and add controls to it on the server.

Also, the documenation only talks about the radtooltip with an updatepanel. I use radajax now. I presume you can use a tooltip with rad ajax

many thanks in advance

 

Tervel
Telerik team
 answered on 17 Jun 2009
1 answer
101 views
I've noticed a bug in Firefox when setting the AutoResizeHeight property of the RadEditor to "true". After the editor is re-sizes, the cursor repositions to the top of the editor - so, if you were to continue typing, your text would begin appear at the beginning of the editor. This is reproducible on the AutoResizeHeight demo here: http://demos.telerik.com/aspnet-ajax/editor/examples/autoresizeheight/defaultcs.aspx

Place your cursor after the last "9.0+" (in the Linux column of the Netscape row) and hit enter. Begin typing and your text will appear at the top of the editor.

I've been able to reproduce this in Firefox 3.0.9 & 3.0.11.
Tervel
Telerik team
 answered on 17 Jun 2009
1 answer
146 views
Hi all,

I have the following XML file as a data-source for the RadTreeView:

<?xml version="1.0" encoding="UTF-8"?> 
 
<codeBook xmlns:xsp="http://apache.org/xsp" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:xsp-session="http://apache.org/xsp/session/2.0" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0" version="1.2.2" ID="ZA4350"
<docDscr> 
<citation> 
<titlStmt> 
<titl> 
Title text goes here
</titl> 
</titlStmt> 
</citation> 
</docDscr> 
</codeBook> 
 

I load it using the following statement:

RadTreeView rt = new RadTreeView(); 
rt.LoadContentFile("file.xml"); 
 

I am getting the following error:

<codeBook xmlns=''> was not expected.


Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: <codeBook xmlns=''> was not expected.


I have read similar posts in these forums but don't see an answer to my problem.  I can't alter the data to add an xmlns attribute to each element.

Any ideas?

Ed Graham




Atanas Korchev
Telerik team
 answered on 17 Jun 2009
1 answer
79 views
2009.1.527.35   Even though HTML shows that ShowRowHeaders is false, RadCalendar still displays the week column.


    Private Sub CreateRadDatePicker(ByVal strLabel As String, ByVal myDateID As String, ByVal myDateValue As String)
        Dim cntrl As New RadDatePicker
        With cntrl
            .Attributes("runat") = "server"
            .Attributes("ShowRowHeaders") = "false"
            .Attributes("UseColumnHeadersAsSelectors") = "false"
            .Attributes("UseRowHeadersAsSelectors") = "false"
            .ID = myDateID
            .EnableViewState = True
        End With

        Me.myPlaceHolder.Controls.Add(cntrl)
    End Sub
Princy
Top achievements
Rank 2
 answered on 17 Jun 2009
3 answers
792 views
Is it possible to show the column headers when the grid is not connected to a datasource?  I would like to show in my wireframe were the grid will reside, but it shrinks when there is no data.


Princy
Top achievements
Rank 2
 answered on 17 Jun 2009
5 answers
132 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
122 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
76 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
199 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
141 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?