Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
54 views
Do you have a place where it tells about installing the product?

For instance, I have installed and registered the dlls' and skins. But I am curious what the /Scripts folder is from the main project you provide with the trial download.

I copied it into my project as well. Is it needed? What is it for?

Next, I notice there are a lot of forum responses that include .zip files. Is there one spot where I can take a look at all the .zip projects you have created to download and try them out?

thanks.
Moon

Dimo
Telerik team
 answered on 03 Nov 2008
3 answers
89 views

Hi

Iam creating my own Command Item Template because i need the add new record to open in a RadWindow instead of reloading the entire grid which is needed when doing inline editing.

However i would very much like to use the same picture you use when creating the standard Add and Delete buttons.

How do i Access these pictures ?

 

 

<CommandItemTemplate><asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="addNewClick(); return false;"><img style="border:0px" alt="" src="../../DataEditing/Img/AddRecord.gif" />Add New</asp:LinkButton></CommandItemTemplate


 

Dimo
Telerik team
 answered on 03 Nov 2008
6 answers
202 views
I've embedded a RadTreeView in a RadComboBox much like the online example, except that I've added event handlers to the RadTreeView for the NodeClick event.  I've also wrapped all of this in an AJAX Panel to avoid causing a full page post-back.  But, it seems like the RadTreeView simply ignores this AJAX wrapper and causes a full page post-back anyway.

I've included a code sample:
<%@ Page Language="C#" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<script runat="server"
    protected void TreeView_SelectedIndexChanged( object sender, EventArgs e ) 
    { 
        RadTreeView rtv = (RadTreeView) sender; 
        RadComboBoxItem item = CB1.SelectedItem; 
        item.Text = rtv.SelectedNode.Text; 
        item.Value = rtv.SelectedValue; 
    } 
 
    protected void ComboBox_SelectedIndexChanged( object sender, EventArgs e ) 
    { 
        RadComboBox rcb = sender as RadComboBox; 
        LIT1.Text = rcb.SelectedItem.Text; 
    } 
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="Mgr1" runat="server"></asp:ScriptManager> 
 
    <telerik:RadAjaxPanel ID="RAP1" runat="server" EnableAJAX="true"
        <telerik:RadComboBox ID="CB1" runat="server" AutoPostBack="true"
            <ItemTemplate> 
                <telerik:RadTreeView ID="TV1" runat="server" OnNodeClick="TreeView_SelectedIndexChanged"
                    <Nodes> 
                        <telerik:RadTreeNode Text="Node 1" Value="1"></telerik:RadTreeNode> 
                        <telerik:RadTreeNode Text="Node 2 - Parent" Value="1"
                            <Nodes> 
                                <telerik:RadTreeNode Text="Node 2.1" Value="2.1"></telerik:RadTreeNode> 
                                <telerik:RadTreeNode Text="Node 2.2" Value="2.2"></telerik:RadTreeNode> 
                            </Nodes> 
                        </telerik:RadTreeNode> 
                        <telerik:RadTreeNode Text="Node 3" Value="3"></telerik:RadTreeNode> 
                    </Nodes> 
                </telerik:RadTreeView> 
            </ItemTemplate> 
            <Items> 
                <telerik:RadComboBoxItem Text="None" Value="" /> 
            </Items> 
        </telerik:RadComboBox> 
    </telerik:RadAjaxPanel> 
     
    <telerik:RadAjaxPanel ID="RAP2" runat="server" EnableAJAX="true"
        <telerik:RadComboBox ID="CB2" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ComboBox_SelectedIndexChanged"
            <Items> 
                <telerik:RadComboBoxItem Text="Item 1" Value="1" /> 
                <telerik:RadComboBoxItem Text="Item 2" Value="2" /> 
                <telerik:RadComboBoxItem Text="Item 3" Value="3" /> 
            </Items> 
        </telerik:RadComboBox> 
        <asp:Literal ID="LIT1" runat="server">Item Value</asp:Literal> 
    </telerik:RadAjaxPanel> 
    </form> 
</body> 
</html> 
 

I included the second RadComboBox just to show that the AJAX panel works for simpler controls.


Jay
Top achievements
Rank 1
 answered on 03 Nov 2008
5 answers
206 views
Hi, I have a pie chart being populated by data through an SQL stored procedure. I have about 30 different items to be displayed, however the pie chart does not seem to display more than 7 or 8 colours. Is there a way to display each item in a different colour? Thanks.
Giuseppe
Telerik team
 answered on 03 Nov 2008
5 answers
171 views
i have an image with the following filename: "~_-box!@#$%^&().jpg"

in the image file manager from the radeditor, i am able to upload this file and see it in the list of files. i can select the file and get back the correct filename. but in the preview pane of the file manager, no image is displayed.

looking at the network traffic, the browser is asking for "~_-box!@".

is there any way to get the file manager to escape filenames?
Devlan
Top achievements
Rank 1
 answered on 03 Nov 2008
2 answers
151 views
Hi all,
i have a problem with my custom edit column template.

This is my column
        public class MyEnumColumnEditor : GridTextColumnEditor 
        { 
            private RadComboBox box; 
            private readonly Type enumType; 
            private readonly bool useDescription = false
            private readonly bool addTopEmptyItem = false
 
 
            public MyEnumColumnEditor(Type enumType, bool useDescription, bool addTopEmptyItem) 
            { 
                this.enumType = enumType; 
                this.useDescription = useDescription; 
                this.addTopEmptyItem = addTopEmptyItem; 
            } 
 
            protected override void AddControlsToContainer() 
            { 
                this.box = new RadComboBox(); 
 
                ArrayList list = new ArrayList(); 
                Array enumValues = Enum.GetValues(enumType); 
                Type baseType = Enum.GetUnderlyingType(enumType); 
 
                if (addTopEmptyItem) 
                    list.Add(new KeyValuePair<intstring>(-1, string.Empty)); 
 
                foreach (Enum value in enumValues) 
                { 
                    string desc = useDescription ? Data.GetEnumDescription(value) : value.ToString(); 
                    list.Add(new KeyValuePair<intstring>((int)Convert.ChangeType(value, baseType), desc)); 
                } 
 
                this.box.DataSource = list; 
                this.box.DataTextField = "Value"
                this.box.DataValueField = "Key"
                this.box.DataBind(); 
                this.box.SelectedIndex = 0; 
                 
                this.ContainerControl.Controls.Add(this.box); 
            } 
 
            protected override void LoadControlsFromContainer() 
            { 
                this.box = this.ContainerControl.Controls[0] as RadComboBox; 
            } 
 
            public override bool IsInitialized 
            { 
                get 
                { 
                    return this.box != null
                } 
            } 
 
            public override string Text 
            { 
                get 
                { 
                    if (this.box.SelectedItem == null
                        return string.Empty; 
 
                    return this.box.SelectedValue; 
                } 
                set  
                { 
                    this.box.SelectedIndex = string.IsNullOrEmpty(value) ? 0 :  
                                           this.box.FindItemIndexByValue(value); 
                } 
            } 
 
        } 
 

All works fine, but when i edit an existing item, the selected item displayed on combobox is not the current value.

The SelectedIndex is correctly but the displayed item is always the first.

Any suggestion?

Thanks in advance,
Flavio



solutionfactory
Top achievements
Rank 1
 answered on 03 Nov 2008
1 answer
75 views
Hi
I'd like to use the radspell feature but the trouble is that in French we have a lot of contractions with the apostrophe and the words with apostrophe are automatically underlined as wrong words, because the engine considers that there's only one word and not two (for instance, "l'immeuble" is the word "immeuble" with the article "l"). How could I say that I want the apostrophe to cut words ?
Rumen
Telerik team
 answered on 03 Nov 2008
6 answers
280 views
is there anway to use RadTreeView to create a horizontal orientation similar to the breadcrumb control shown at Some Other Control Site?

I want to use the treeview to provide an admin interface to modify the data that will be used to create the RadMenu for a site (think menu admin tool).  Rather than a typical vertical tree, it would be nice to make it horizontal instead.

Thanks,
Rob


Cole
Top achievements
Rank 1
 answered on 03 Nov 2008
2 answers
154 views
Do you guys have any examples of incorporating a slider into a pager template? I know you have a slider setting for your standard pager, but i have a template in which I want to place the slider in between the back and forward buttons. My template looks fine of course, but needs to be wired to the pager navigation and I was hoping maybe you guys already had a sample of this.

Thanks!
Levi
Levi
Top achievements
Rank 1
 answered on 03 Nov 2008
5 answers
218 views
During my implementation of the prometheus RadEditor, i noticed the following issues/bugs:

1. When resizing an image I uploaded and embedded in the body of the editor, I could not find a way to keep it proportional when dragging by the handles. Is there a way to do this? I was hoping there was something like photoshop has where holding the ctrl button while dragging keeps it proportional. I tried setting the image properties which have a "link" icon between the height/width that indicates that it should stay proportional, but it doesn't. I was expecting to plug in a width and it calculate the height, but it didnt. Any suggestions?

2. I was using the image editor within the image manager and tried to use the crop feature. I move the box around the section I wanted to crop to and saved it. But what happened is instead of cropping to the points I set (which were more in the center of the image) it cropped starting from the top left edge to the size I had set. Its as if it ignored its starting x/y position and only cropped based on the height/width of the box.
Rumen
Telerik team
 answered on 03 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?