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

ZIndex problem in RadWindow

3 Answers 49 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
TaponiaSoftware
Top achievements
Rank 1
TaponiaSoftware asked on 27 Sep 2013, 09:36 AM
hi,

the dropdown-div of RadDropDownTree is captured within an RadWindow.
Is there a way to show the dropdown window over the borders of a RadWindow? (ZIndex)

Thank you

Stefan

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 30 Sep 2013, 06:49 AM
Hi Stefan,

I guess you want to show the RadDropDownTree's drop-down over the RadWindow border which is the default behavior. Please check the sample code I tried.

ASPX:
<telerik:RadWindow ID="RadWindow1" runat="server" OpenerElementID="RadButton1" Width="400px"
    Height="300px">
    <ContentTemplate>
        <div style="padding: 10px 10px 10px 15px;">
            <telerik:RadDropDownTree ID="RadDropDownTree1" runat="server" Width="300px" DefaultMessage="Select a product from the list">
            </telerik:RadDropDownTree>
        </div>
    </ContentTemplate>
</telerik:RadWindow>
<telerik:RadButton ID="RadButton1" runat="server" Text="Open RadWindow">
</telerik:RadButton>

C#:
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        BindToIEnumerable(RadDropDownTree1);
    }
}
 
private static void BindToIEnumerable(RadDropDownTree dropdowntree)
{
    List<SiteDataItem> siteData = new List<SiteDataItem>();
 
    siteData.Add(new SiteDataItem(1, 0, "Products", "Value 0"));
    siteData.Add(new SiteDataItem(2, 1, "RadControls for ASP.NET Ajax", "Value 1"));
    siteData.Add(new SiteDataItem(3, 1, "RadControls for Silverlight", "Value 2"));
    siteData.Add(new SiteDataItem(4, 2, "RadGrid", "Value 3"));
    siteData.Add(new SiteDataItem(5, 2, "RadScheduler", "Value 4"));
    siteData.Add(new SiteDataItem(6, 2, "RadEditor", "Value 5"));
    siteData.Add(new SiteDataItem(7, 2, "RadWindow", "Value 3"));
    siteData.Add(new SiteDataItem(8, 2, "RadButton", "Value 4"));
    siteData.Add(new SiteDataItem(9, 2, "RadComboBox", "Value 5"));
    siteData.Add(new SiteDataItem(7, 3, "RadGrid", "Value 6"));
    siteData.Add(new SiteDataItem(8, 3, "RadMenu", "Value 7"));
    siteData.Add(new SiteDataItem(9, 3, "RadEditor", "Value 8"));
 
    dropdowntree.DataTextField = "Text";
    dropdowntree.DataValueField = "Value";
    dropdowntree.DataFieldID = "ID";
    dropdowntree.DataFieldParentID = "ParentID";
    dropdowntree.DataSource = siteData;
    dropdowntree.DataBind();
}
 
internal class SiteDataItem
{
    private string _text;
    private string _value;
    private int _id;
    private int _parentId;
 
    public string Text
    {
        get { return _text; }
        set { _text = value; }
    }
 
    public string Value
    {
        get { return _value; }
        set { _value = value; }
    }
 
    public int ID
    {
        get { return _id; }
        set { _id = value; }
    }
 
    public int ParentID
    {
        get { return _parentId; }
        set { _parentId = value; }
    }
 
    public SiteDataItem(int id, int parentId, string text, string value)
    {
        _id = id;
        _parentId = parentId;
        _text = text;
        _value = value;
    }
}

Thanks,
Shinu.
0
TaponiaSoftware
Top achievements
Rank 1
answered on 02 Oct 2013, 10:10 AM
Hm, i´m using separate pages within the RadWindow (NavigateUrl) - .

Seems there is no chance to get a div outside the iframe working (?)
0
Kate
Telerik team
answered on 07 Oct 2013, 08:00 AM
Hello Stefan,

Unfortunately the contents of an iframe cannot be displayed outside of the iframe as explained in more details here.

Regards,
Kate
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
DropDownTree
Asked by
TaponiaSoftware
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
TaponiaSoftware
Top achievements
Rank 1
Kate
Telerik team
Share this question
or