Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views

Dear Telerik,

I'm a web developer with RadControls for ASP.Net AJAX Q2 2008, and I have a trouble with RadComboBox.
It's here: my site is about mobile phone and laptop presenting and trading system with large of functions and data, so, we need to cache it. We use two methods of caching: Cache data in RAM and output cache with direction:

 

<%

@ OutputCache VaryByParam="*" %>

 

 

and radcontrols like RadCombobox, RadFormDecorator, ... can't display it style, so, it can't display properly.

Telerik, please help me to find the better way to solve this problem, it's very important.
You can view it here: http://thegioididong.com/dtdd/phone/default.aspx

Thanks,
Khanh

 

Peter
Telerik team
 answered on 11 Nov 2008
1 answer
156 views
Dear Telerik Support Team,

We are having Telerik:RadEditor and we also have a button (just below the editor) named "Preview". When user click on "Preview" button "telerik:RadSpell" should check the spellings which user has entered in Telerik:RadEditor. This is the functionality what we want and it should behave the same.

But we are facing the problem in applying it, which I am mentioning here.

When we click on Preview button we are able to view the Spell Check window, soon after we are gets a big error alert having titled "No directory loaded. Set the DirectoryPath property before spellchecking." You can view the error by clicking on the link below.
http://61.246.241.36/error.png

We have mentioned the directory path in the tag
----------
<telerik:RadSpell ID="RadSpell1" Runat="server" DictionaryPath="~/RadSpell" IsClientID="True" ButtonType="none" OnClientCheckFinished="SpellCheck_Finished" />
----------

The folder named RadSpell which we mentioned in DirectoryPath property, is exists in the location but it is empty. Are We doing something wrong? or the folder named RadSpell should not be empty? It contains some RadSpell  supporting files?

Can you please provide us the solution or any valuable suggestions, So that we can able to resolve this issue in our application.

Looking towards your great support.


Regards,
Samrat Banarjee
India
Rumen
Telerik team
 answered on 11 Nov 2008
1 answer
118 views
I have a radtreeview as a template item of a radcombobox.  When I save the data away I save the selectednode.fullpath to the database. When going back in I want to redisplay what I have set in the database. I'm really struggling with this... I can't seem to set the combobox.text or force it to go to the correct node either.

Can anyone help please?

Thanks.
Yana
Telerik team
 answered on 11 Nov 2008
1 answer
83 views
Hi,
I cant see any Telerik items in the toolbox with my ASP.NET 2.0 website.
I have tried the ToolboxInstaller but it doesn't help.
What to do?
Mattias
Top achievements
Rank 1
 answered on 11 Nov 2008
1 answer
276 views
I have to calculate the NavigateUrl of a GridHyperLinkColumn in Gridview.

When I do this i get the result of the previous Datarecord.
So the first Row is empty, the second row gets the link of the first row and so on.
Do I use the wrong event? Whats wrong?

Code
        protected void rgFiles_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem ) 
            { 
                Telerik.Web.UI.GridHyperLinkColumn ghlc = (Telerik.Web.UI.GridHyperLinkColumn) e.Item.OwnerTableView.Columns[0]; 
                System.IO.FileInfo fi = (System.IO.FileInfo)e.Item.DataItem; 
                string s = Server.MapPath("~/upload"); 
                ghlc.NavigateUrl = "~/upload"+fi.DirectoryName.Replace(Server.MapPath("~/upload"),"")+"/"+fi.Name; 
            } 
            
        } 

Rosen
Telerik team
 answered on 11 Nov 2008
2 answers
179 views

I need to change the branch or whole tree icons when I select an option from the menu.
On OnClientContextMenuItemClicked I call the recusive function for changing the icons

My problem is that only for the leaf nodes  the icons are changed .

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestTreeView.Default" %> 
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %> 
 
<!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>Untitled Page</title> 
</head> 
 
<script type="text/javascript">  
     function SetImageUrl(node, imageUrl)  
    {  
        node.set_imageUrl(imageUrl);     
        node.set_selectedImageUrl(imageUrl);   
          
        for (var i = 0; i < node.get_nodes().get_count(); i++)     
        {    
            SetImageUrl(node.get_nodes().getNode(i), imageUrl);  
        }    
    }  
      
    function OnClientContextMenuItemClicked(sender, args)  
    {  
        var menuItem = args.get_menuItem();     
        var node     = args.get_node();     
    
        sender.trackChanges();   
        switch(menuItem.get_value())     
        {     
            case "FullCategory":  
                SetImageUrl(node, "../Images/circle_red.png");  
                break;     
            case "PartialCategory":     
                SetImageUrl(node, "../Images/circle_green.png");  
                break;     
            case "RemoveCategory":  
                SetImageUrl(node, "../Images/Folder.gif");  
                  
        }     
        sender.commitChanges();  
    }  
          
      
    </script> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <asp:ScriptManager ID="scriptManager1" runat="server" /> 
         <telerik:RadTreeView id="t" runat="server" Height="470px" Visible = "true" 
                            OnClientContextMenuItemClicked = "OnClientContextMenuItemClicked" > 
                              
                            <ContextMenus>   
                                <telerik:RadTreeViewContextMenu ID="AppRoleMenu" ClickToOpen="True" runat="server" >   
                                 <Items> 
                                   <telerik:RadMenuItem Text="Full Category"    Value="FullCategory"></telerik:RadMenuItem> 
                                   <telerik:RadMenuItem Text="Partial Category" Value="PartialCategory"></telerik:RadMenuItem> 
                                   <telerik:RadMenuItem Text="Remove  Category" Value="RemoveCategory"></telerik:RadMenuItem> 
                                 </Items>    
                                </telerik:RadTreeViewContextMenu> 
                            </ContextMenus>   
          </telerik:RadTreeView> 
      
    </div> 
    </form> 
</body> 
</html> 
 
 
 
the code behind :  
 
 
using Telerik.Web.UI;  
using Telerik.QuickStart;  
 
 
namespace TestTreeView  
{  
    public partial class Default : System.Web.UI.Page  
    {  
        string ImageUrl = "../Images/Folder.gif";  
 
        protected void Page_Load(object sender, EventArgs e)  
        {  
            LoadTree();  
        }  
 
        protected void LoadTree()  
        {  
            string[] arr1 = new string[]{"node1.1","node1.2","node1.3", "node1.4"};  
            string[] arr2 = new string[]{"node2.1","node2.2","node2.3", "node2.4"};  
            string[] arr3 = new string[]{"node3.1","node3.2","node3.3", "node3.4"};  
              
            RadTreeNode root  = new RadTreeNode("root", "0");  
            root.ImageUrl = ImageUrl;  
            t.Nodes.Add(root);    
 
            root.Nodes.Add(CreateNodes("node1", arr1));  
            root.Nodes.Add(CreateNodes("node2", arr2));  
            root.Nodes.Add(CreateNodes("node3", arr3));  
 
            t.ExpandAllNodes();   
        }  
 
        protected RadTreeNode CreateNodes(string parentName, string[] arr)  
        {  
            RadTreeNode parentNode = new RadTreeNode(parentName);  
            parentNode.ImageUrl = ImageUrl;  
              
            foreach (string name in arr)  
            {  
                RadTreeNode node = new RadTreeNode(name);  
                node.ImageUrl = ImageUrl;  
                parentNode.Nodes.Add(node);  
            }  
 
            return parentNode;  
        }  
      
    }  
 
}  
 
Laurentiu
Top achievements
Rank 1
 answered on 11 Nov 2008
1 answer
116 views
Hi
We have a html table containing two cells. One of them is resized according to the td content. The other cell will occupy the remaining width. We have a radgrid in the second cell. When ajax is disabled on the grid everything works fine, however when is enabled the grid overlaps the left cell. We need to have ajax enabled in order for our grid to work proberly. We tried this with both Q1 2008 and Q2 2008. We cannot have a fixed table layout. Also, this is a problem only in IE. No problem in FF.
Dimo
Telerik team
 answered on 11 Nov 2008
2 answers
130 views
Hi,

I am using RadGrid on my page. When i load the page, Grid is only showing 50% of width for few seconds. Then auto expend to 100%. Where do I need to change this setting. I have put 100% width in Design view but still showing 50% for a moment.

Please let me know.

Thanks you for you help.

Dimo
Telerik team
 answered on 11 Nov 2008
2 answers
73 views
hi All

Does anyone have an example of using combo boxes within a Web user control edit form?

The scenario that I've got is I need to display two combo boxes on my edit form. When the user selects the a value from the first dropdown list I need to re-populate the second dropdown with items that are related to the first drop down. I have forced the first dropdown to postback and have put some code in the selectedindexed changed event, but the grid seems to post back and I lose the original value that I selected in the first drop down.

If anyone has an example of how to accomplish this it would be appreciated.

Thanks

Martin.
martin
Top achievements
Rank 2
 answered on 11 Nov 2008
1 answer
160 views
I've inserted scroll bars in the appointment using the following code:

<AppointmentTemplate> 
                                    <div style="overflow:auto;height:20px;"
                                    <%# Eval("Subject") %> 
                                    <br /> 
                                    <asp:Label id="label1" runat="server" Text="Label"></asp:Label> 
                                    <br /> 
                                    <asp:Label id="label2" runat="server" Text="Label"></asp:Label> 
                                    </div> 
                                     
</AppointmentTemplate> 


The first problem is that whenever I click (and hold) on the scroll bars to move up and down the appointment gets in the "move" (drag and drop) mode and then starts moving with the mouse pointer.How can I disable this feature?...Secondly the upper scroll button appears right under the "delete" image button (it comes on mouseover by default).Is it possible to change the position of delete image button or maybe the vertical scroll bars :-)  (I need only vertical bars)
Peter
Telerik team
 answered on 11 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?