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

RTL menu Problem

1 Answer 71 Views
Menu
This is a migrated thread and some comments may be shown as answers.
hesam
Top achievements
Rank 1
hesam asked on 04 Apr 2009, 09:47 PM
hi team telerik
when i change menu in to rtl Width child menu is not current and Flow and ExpandDirection
i set that in code behind and clientside
    <telerik:RadMenu ID="RadMenu1" runat="server"  OnClientItemPopulating="itemPopulating"  
            
              Flow="Vertical" style="top: 0px; left: 0px" dir="rtl"
              <DefaultGroupSettings Flow="Vertical" Width="200" ExpandDirection="Left"    /> 
            <WebServiceSettings Path="~/RTLSite/UserControlRTL/MenuWebService.asmx" Method="GetMenuCategories" /> 
            <LoadingStatusTemplate> 
                <asp:Image runat="server" ID="LoadingImage" ImageUrl="~/RTLSite/UserControlRTL/Images/loading1.gif" ToolTip="Loading..."  /> 
            </LoadingStatusTemplate> 
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
               
               
        </telerik:RadMenu> 
 
 private void LoadRootNodes() 
    { 
         
 
        SqlConnection connection = new SqlConnection( 
        ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); 
 
        SqlCommand selectCommand = new SqlCommand("Menu_Select_FirstLevel_Site", connection); 
        selectCommand.CommandType = CommandType.StoredProcedure; 
       
        selectCommand.Parameters.AddWithValue("intContentlId", StrContentCodeId); 
 
        SqlDataAdapter adapter = new SqlDataAdapter(selectCommand); 
        DataTable data = new DataTable(); 
        adapter.Fill(data); 
 
        foreach (DataRow row in data.Rows) 
        { 
 
            RadMenuItem menuSiteItem = new RadMenuItem(); 
            menuSiteItem.Text = row["strMenuName"].ToString(); 
            menuSiteItem.Value = row["MenuId"].ToString() + "_" + row["strMenuType"].ToString(); 
            menuSiteItem.ExpandMode = MenuItemExpandMode.WebService; 
 
            //if (row["ChildrenCount"].ToString() == "0") 
            //    node.ExpandedImageUrl = "image"
           // menuSiteItem.GroupSettings.ExpandDirection = ExpandDirection.Left; 
            menuSiteItem.Width = 200
           // menuSiteItem.GroupSettings.Width = 200
            //menuSiteItem.GroupSettings.Flow = ItemFlow.Vertical; 
            RadMenu1.Items.Add(menuSiteItem); 
        }//foreach 
       
    } 
 
 
webservice 
 public RadMenuItemData[] GetMenuCategories(RadMenuItemData item, object context) 
    { 
        IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context; 
 
        DataTable productCategories = GetNodeContent(item.Value.Split('_')[0], contextDictionary["ContentId"].ToString());// System.Text.ASCIIEncoding.ASCII.GetString(System.Convert.FromBase64String(contextDictionary["ContentId"].ToString()))); 
 
        List<RadMenuItemData> result = new List<RadMenuItemData>(); 
 
        foreach (DataRow row in productCategories.Rows) 
        { 
            RadMenuItemData itemData = new RadMenuItemData(); 
            itemData.Text = row["strMenuName"].ToString(); 
            itemData.Value = row["MenuId"].ToString() + "_" + row["strMenuType"].ToString(); 
             
            if (Convert.ToInt32(row["ChildrenCount"]) > 0) 
            { 
 
                itemData.ExpandMode = MenuItemExpandMode.WebService; 
 
            } 
            itemData.PostBack = true
            result.Add(itemData); 
        } 
 
        return result.ToArray(); 
    } 
 

please see link picture

http://g.imagehost.org/0021/menuerror.jpg
http://f.imagehost.org/0607/menuerror1.jpg
http://f.imagehost.org/0632/menuerror2.jpg
http://f.imagehost.org/0036/menuerror3.jpg



1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 07 Apr 2009, 02:27 PM
Hi Hesam,

Can you give me more information about your setup, like which version of RadControls are you using and .NET version? Also can you try running your site with the latest Q1 2009 SP1 to see if that resolves your issues?

Regards,
Kamen Bundev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
hesam
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or