rad combo box problem

2 posts, 0 answers
  1. eslam
    eslam avatar
    2 posts
    Member since:
    Jun 2010

    Posted 11 Oct 2011 Link to this post

    i have rad combo box inside telerik rad window and i can not see combo box choices if the page direction is (right to left)
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Oct 2011 Link to this post

    Hello Eslam,

    I am not sure about your scenario. So I have tried the following scenarios and both are worked as expected.
    i) Setting NavigateUrl proprty of the RadWindow and the RadComboBox is in the navigated page and tried setting rtl for both the pages.
    ii) Creating the RadCombobox inside RadWindow ContentTemplate and set the direction as rtl for that page.
    Here is the code of second scenario.

    ASPX:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="radwindow_pgdirection.aspx.cs"
        Inherits="Radcombobox_radwindow" %>
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
        <style type="text/css">
            html
            {
                direction: rtl;
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:Button ID="Button1" runat="server" Text="Click" OnClientClick="open1();return false" />
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                <Windows>
                    <telerik:RadWindow ID="RadWindow1" runat="server"  >
                        <ContentTemplate>
                            <telerik:RadComboBox ID="RadComboBox1" runat="server">
                                <Items>
                                    <telerik:RadComboBoxItem Text="A" Value="A" />
                                    <telerik:RadComboBoxItem Text="B" Value="B" />
                                    <telerik:RadComboBoxItem Text="C" Value="C" />
                                    <telerik:RadComboBoxItem Text="D" Value="D" />
                                    <telerik:RadComboBoxItem Text="E" Value="E" />
                                    <telerik:RadComboBoxItem Text="F" Value="F" />
                                </Items>
                            </telerik:RadComboBox>
                        </ContentTemplate>
                    </telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
        </div>
        </form>
    </body>
    </html>
     
    <script type="text/javascript" language="javascript">
    function open1()
    {
        window.radopen(null, "RadWindow1");
     }
    </script>

    Thanks,
    Princy.
Back to Top