Hi all,
I have found a problem with the ComboBox when placing the page form inside other elements. In my example I have placed the page form in an ASCX control. I have to do it that way because of the CMS I'm using.
The div outside the page form has a specific size and is centeret on the page.
Apparantly the ComboBox drop down is positioned from the page form. This means that the dropdown now appears way to the right of it's intended position.
What do I do?
ASPX Page:
ASCX Control
I have found a problem with the ComboBox when placing the page form inside other elements. In my example I have placed the page form in an ASCX control. I have to do it that way because of the CMS I'm using.
The div outside the page form has a specific size and is centeret on the page.
Apparantly the ComboBox drop down is positioned from the page form. This means that the dropdown now appears way to the right of it's intended position.
What do I do?
ASPX Page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="HourKid_Usercontrols.WebForm1" %> |
<%@ Register Src="WebUserControl1.ascx" TagName="WebUserControl1" TagPrefix="uc1" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title></title> |
</head> |
<body> |
<div style="width: 500px; height: 500px; margin: 0 auto; position: relative;"> |
<uc1:WebUserControl1 ID="WebUserControl11" runat="server" /> |
</div> |
</body> |
</html> |
ASCX Control
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" |
Inherits="HourKid_Usercontrols.WebUserControl1" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<div style="padding: 100px;"> |
<div style="float: right; position: relative;"> |
<telerik:RadComboBox ID="RadCbShareMail" ValidationGroup="Share" runat="server" AllowCustomText="true" |
Skin="Vista" EmptyMessage="sdfsdf" DataTextField="Email" DataValueField="Email" |
ChangeTextOnKeyBoardNavigation="true" MarkFirstMatch="true"> |
<Items> |
<telerik:RadComboBoxItem Text="sdfa" /> |
</Items> |
</telerik:RadComboBox> |
</div> |
</div> |
</form> |