This is a migrated thread and some comments may be shown as answers.

Two RadMenus on the same line separated by a RadNumericTextBox

1 Answer 107 Views
Menu
This is a migrated thread and some comments may be shown as answers.
lchesnais
Top achievements
Rank 1
lchesnais asked on 19 Sep 2008, 11:14 AM
Hello,

I'd like to have two RadMenu on the same line separated by a RadNumericTextBox. Unfortunately, the second RadMenu appears on another line.
Does anybody has an idea?
Thanks in advance.

Please find below my code. I'm using Telerik.Web.UI version 2008.2.826.35.

BR, Laurent
<%@ 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">  
 
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager  
                id="RSM" 
                runat="server" 
                > 
        </telerik:RadScriptManager> 
        <telerik:RadMenu  
                id="rmType" 
                runat="server" 
                Flow="Horizontal" 
                > 
                <Items> 
                    <telerik:RadMenuItem  
                            Text="Spending" 
                            > 
                        <Items> 
                            <telerik:RadMenuItem Text="Spending" /> 
                            <telerik:RadMenuItem Text="Income" /> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items> 
        </telerik:RadMenu> 
        <telerik:RadNumericTextBox  
                id="rtnbAmount" 
                runat="server" 
                Value="12.2" 
                > 
        </telerik:RadNumericTextBox> 
        <telerik:RadMenu  
                id="rmCurrency" 
                runat="server" 
                Flow="Horizontal" 
                > 
                <Items> 
                    <telerik:RadMenuItem  
                            Text="€" 
                            > 
                        <Items> 
                            <telerik:RadMenuItem Text="€ - EUR" Value="1" /> 
                            <telerik:RadMenuItem Text="$ - USD" Value="2" /> 
                            <telerik:RadMenuItem Text="Other">  
                                <Items> 
                                    <telerik:RadMenuItem Text="£ - GBP" Value="5" /> 
                                    <telerik:RadMenuItem Text="Y - YEN" Value="6" /> 
                                </Items> 
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items> 
        </telerik:RadMenu> 
    </div> 
    </form> 
</body> 
</html> 
 

1 Answer, 1 is accepted

Sort by
0
Accepted
-DJ-
Top achievements
Rank 1
answered on 19 Sep 2008, 12:10 PM

Hello Laurent.

Just put a div around each item -> the textbox and the later menu should be enough -> with the float property set to left:

<

div style="float: left;"> content </div>


Regards,
-DJ-

Tags
Menu
Asked by
lchesnais
Top achievements
Rank 1
Answers by
-DJ-
Top achievements
Rank 1
Share this question
or