Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
119 views
Hi there,

I have a menu called "A" and I want to attach a menu called "B" to several menu items of "A", without duplicating "B".

First, I guessed there were a possibiliy to attach a menu to another menu but (tell me if I'm wrong) it's not possible.

So, I tried to put "B" in an user control but RadMenu don't allow to put an user control as menu item child.

Then, I tried to attach / copy "B" programatically to menu items of "A" but this acts as a move instead of copy.

Finally, I think the best way is to create an XML file for "A" and another for "B", and to programatically bind "B" to menu items of "A". Is anybody can confirm this option ?
Florian
Top achievements
Rank 1
 asked on 02 Mar 2009
7 answers
179 views

Hi there.

I am using the TreeView and trying to implement the drag and drop functionality for reordering. I have setup the NodeDrop event as per the documentation using e.SourceDragNode and e.DestDragNode. The DestDragNode works fine however the SourceDragNode always seems to return null.
Setup is as follows ...

ASPX...

<

telerik:RadTreeView ID="treeMenu" runat="server" DataTextField="Text" DataValueField="Value"

AllowNodeEditing="True" EnableDragAndDrop="True" EnableViewState="True"

EnableDragAndDropBetweenNodes="True" OnNodeDrop="treeMenu_NodeDrop"

CheckBoxes="True" >

<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>

<ExpandAnimation Duration="100"></ExpandAnimation>

</telerik:RadTreeView>

C#...

protected

void treeMenu_NodeDrop(object sender, RadTreeNodeDragDropEventArgs e)
{
RadTreeNode sourceNode = e.SourceDragNode;
RadTreeNode destNode = e.DestDragNode;
RadTreeViewDropPosition dropPosition = e.DropPosition;

if
(destNode != null)
{
    if (sourceNode.TreeView.SelectedNodes.Count <= 1)
        {
            PerformDragAndDrop(dropPosition, sourceNode, destNode);
        }
    else if (sourceNode.TreeView.SelectedNodes.Count > 1)
        {
            foreach (RadTreeNode node in sourceNode.TreeView.SelectedNodes)
                {
                    PerformDragAndDrop(dropPosition, node, destNode);
                }
        }
    destNode.Expanded =
true;
    sourceNode.TreeView.ClearSelectedNodes();
}
}

private

static void PerformDragAndDrop(RadTreeViewDropPosition dropPosition, RadTreeNode sourceNode, RadTreeNode destNode)
...


Please can someone help me to understand why this is happening???

many thanks

Veselin Vasilev
Telerik team
 answered on 02 Mar 2009
1 answer
99 views
Hello,

I use one of your examples: file browser.

For nodes in the tree, the expand mode is set like this:

node.ExpandMode = ExpandMode.Serverside

But 'ExpandMode' couldn't compile. Is it still in the telerik suite?
How to resolve?

-Keen
Princy
Top achievements
Rank 2
 answered on 02 Mar 2009
4 answers
235 views
Hello,

for the site I'm working on, I need to create personnalized skin with the picture delivered by our web agency. For doing this I need to know every classes and their meaning that the RadWindow offers. Unfortunatly, i didn't find any explanation and any name of classes in the online doc for radwindow. Is their a way to obtain these explanations ?

PS : the skins offered by Telerik does not aswer to our need.

Thank you.
Georgi Tunev
Telerik team
 answered on 02 Mar 2009
3 answers
125 views
Hi,

I have radgid, in that i have added asp:textbox control. When i sort the grid textbox are not getting sorted I mean it remains same and other columns will get sorted. Is it possible to sort textbox content also in the grid?


Thanks in advance,
Medac
Medac
Top achievements
Rank 1
 answered on 02 Mar 2009
1 answer
105 views
Dear Telerik,

using
 
     e.SeriesItem.Label.TextBlock.Text = row("Lehrstuhl") + " - " + String.Format("#%", row("Minuten"))  
   

work great and returns something like   NSC - 21% in chart for winforms.

Is there a direct way to get a percantage value like 21.33 %

i tried   "#%{F}"  as a format string without success.

Kind Regards

Martin Gartmann

Ves
Telerik team
 answered on 02 Mar 2009
1 answer
102 views
When I add a label to X axix of my bar chart it only shows few x axix values, records doesn't show correctly. When I remove the label it shows all the X axix values, but then there is no x axix label to denote what is x axix means.
This may be a stupid mistake I'm doing... Following is my ASP.NET page... why all of records in my table doesn't display...?

<radc:RadChart ID="RadChartq" runat="server" Margins-Bottom="125px" Margins-Left="10%" 
                    Margins-Right="10%" Width="800px" Palette="Gradient" Height="500px"> 
                    <Gridlines> 
                        <VerticalGridlines Visible="False" /> 
                        <HorizontalGridlines Color="DarkGray" /> 
                    </Gridlines> 
                    <YAxis MaxValue="65"> 
                        <Label ShadowColor="180, 0, 0, 0" TextFont="Arial, 10pt"> 
                        </Label> 
                       
                    </YAxis> 
                    
                    
                    <XAxis AutoScale="False" DataLabelsColumn="hour_start" MaxItemsCount="24" LabelRotationAngle="-70" 
                        ValueFormat="ShortTime"> 
                        <Label ShadowColor="180, 0, 0, 0" TextFont="Arial, 10pt"> 
                        </Label> 
                    </XAxis> 
                    <Legend VAlignment="Top" VSpacing="40"> 
                        <Background BorderColor="144, 144, 144" FillStyle="Solid" MainColor="White" /> 
                    </Legend> 
                    <Background BorderColor="Gray" FillStyle="Gradient" MainColor="Silver" SecondColor="White" 
                        BorderWidth="1" Corners-RoundSize="6" /> 
                    <PlotArea BorderColor="" Corners-BottomLeft="Round" Corners-BottomRight="Round" Corners-RoundSize="6" 
                        Corners-TopLeft="Round" Corners-TopRight="Round" /> 
                    <ChartTitle HorPadding="10" HSpacing="10" ShadowColor="180, 0, 0, 0" TextColor="White" 
                        TextFont="Arial, 16px" > 
                        <Background FillStyle="Solid" /> 
                    </ChartTitle> 
                    <EmptySeriesMessage ShadowColor="180, 0, 0, 0" TextColor="Red" TextFont="Arial, 12pt"> 
                    </EmptySeriesMessage> 
                </radc:RadChart> 

Code Behind..
DataSet dsData = new WebServices().METHOD(); 
            Font labelFont = new Font("Arial", 9, GraphicsUnit.Pixel); 
            ChartSeries Series1 = this.RadChart1.CreateSeries("TITLE..", Color.Empty, ChartSeriesType.Bar); 
            Series1.LabelAppearance.TextColor = Color.DarkSlateGray; 
            Series1.LabelAppearance.Alignment = ContentAlignment.TopCenter; 
            Series1.LabelAppearance.TextFont = labelFont; 
            Series1.LabelAppearance.RotationAngle = -90; 
            Series1.LabelAppearance.VerPadding = 5; 
            Series1.LineWidth = 2; 
            Series1.MainColor = Color.Green; 
 
            foreach (DataRow row in dsData.Tables[0].Rows) 
            { 
                ChartSeriesItem item = new ChartSeriesItem(); 
                item.XValue = ((DateTime)row["hour_start"]).ToLocalTime().ToOADate(); 
                item.YValue = Convert.ToDouble(row["ROWS"]); 
                Series1.Items.Add(item); 
            } 
 
I need to display the label in date time format.  My table has only two columns, ROWS, and hour_start Appreciate help..
Vladimir Milev
Telerik team
 answered on 02 Mar 2009
3 answers
284 views
I,m very new to radc:RadChart.
This may be really simple thing. But still cannot do this. radc:RadChart I started today.:)  
I have a bar chart, which I need to display 24 hours in X value, but I need to display this value as string. Because this a dynamic field I'm getting from database.

as an example i need to display last 24 hours as 1 hour time gap from current time to back 24 hours.

9.34-8.34| 8.34 - 7.34 | 7.34-6.34| ...

I have this data. I just want to add this value to label and display on x axix.

For y axix I have integer value coming from same table.

My table structure as belows. It has only two columns.

count - int -> Y axix
TimeSpan - string -> X axix
Appreciate help., I'm already playing with charts..
Vladimir Milev
Telerik team
 answered on 02 Mar 2009
1 answer
114 views
Hi there,

I have the following code to open a new window.  No Skin property is set because I dont want one (just wanted a shaded background with the page to popup as is), but this code always seems to select the details skin anyway!  how do i stop it from selecting a skin?

<

script language="javascript" type="text/javascript"> 
f
unction popupUploadForm() 
{     disableLeaveWarning();
var url=imageUploadForm; 
var oWnd = $find("<%= radwinPopup.ClientID %>"); 
    oWnd.show();
   oWnd.setSize(600,550);
   oWnd.setUrl(url);    
oWnd.Center(); 
oWnd.add_close(OnClientClose);
return false; } 
 
</script>

<radW:RadWindowManager ID="radwinPopupMgr" runat="server" Height="550" Width="600" Modal="true" Behavior="Close"><Windows>  
<
radW:RadWindow ID="radwinPopup" ReloadOnShow="true" VisibleStatusBar="false" Behavior="Close" BackColor="gray" Modal="true" runat="server"/></Windows></radW:RadWindowManager>

Georgi Tunev
Telerik team
 answered on 02 Mar 2009
1 answer
86 views
I have a searcing hform that bind grid at the time when search button pressed, but the problem is that when I navigate to page 2 of the radgrid (Allowpaging=true) the post back event fire and binding lost.
I also enabled the view state and not founding any property of DataSourcePersistenceMode.

How to optimize rad grid to bind one time and improve performance because I have a huge data to bind aprox. 500,000 records.

Kindly help urgently


 

Shinu
Top achievements
Rank 2
 answered on 02 Mar 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?