RTL menu Problem

2 posts, 0 answers
  1. hesam
    hesam avatar
    26 posts
    Member since:
    May 2008

    Posted 04 Apr 2009 Link to this post

    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" /> 
                    <asp:Image runat="server" ID="LoadingImage" ImageUrl="~/RTLSite/UserControlRTL/Images/loading1.gif" ToolTip="Loading..."  /> 
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
     private void LoadRootNodes() 
            SqlConnection connection = new SqlConnection( 
            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(); 
            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; 
     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
            return result.ToArray(); 

    please see link picture


  2. Kamen Bundev
    Kamen Bundev avatar
    1532 posts

    Posted 07 Apr 2009 Link to this post

    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?

    Kamen Bundev
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top