Hi,
<%@ Page Language="C#" AutoEventWireup="false" CodeFile="dropdown1.aspx.cs" Inherits="dropdown1" %>
<!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 id="Head1" runat="server">
<title>jquery.combox example</title>
<script type="text/javascript" src="Scripts/jquery.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.dimensions.js"></script>
<script type="text/javascript" src="Scripts/jquery.combobox.js"></script>
<script type="text/javascript" src=""></script>
<link href="style/screen/example.css" rel="Stylesheet" type="text/css" />
<link href="style/screen/combobox_diagonal.css" rel="Stylesheet" type="text/css" />
<style>
.comboboxContainer
{
border-left: solid 2px #777;
border-top: solid 2px #777;
border-bottom: solid 1px #ccc;
}
.comboboxValueContainer
{
background: url(../Images/diag_content.gif) repeat-x left top;
}
.comboboxValueContent
{
padding-left: 3px;
text-transform: uppercase;
color: #770033;
font-weight: bold;
max-height: 18px;
}
.comboboxDropDownContainer
{
border-right: solid 1px #000;
border-bottom: solid 1px #000;
border-left: solid 1px #aaa;
border-top: solid 1px #aaa;
background: url(../Images/diag_ddl.gif) repeat left top;
overflow: hidden;
padding-left: 3px;
cursor: default;
outline: none;
}
.comboboxDropDownButton
{
width: 17px;
height: 23px;
background-image: url(../Images/trigger.gif);
}
.comboboxGroupItemHeader
{
display: block;
background: #770033;
color: #fff;
padding-left: 5px;
font-style: italic;
font-weight: bolder;
font-family: Georgia;
}
.comboboxGroupItemContainer
{
padding-left: 0px;
margin: 0;
}
.comboboxItem
{
color: #000;
text-transform: lowercase;
font-weight: normal;
font-style: normal;
}
.comboboxItemHover
{
background-color: #999;
color: #fff;
}
.comboboxGroupItemContainer .comboboxItem
{
padding-left: 20px;
margin-left: 0px;
}
</style>
</head>
<body>
<script>
// $(function() {
// debugger;
// $('#<%= ddl1.ClientID %>').combobox();
// });
$(function() {
$('#<%= ddl1.ClientID %>').combobox(
{
comboboxContainerClass: "comboboxContainer",
comboboxValueContainerClass: "comboboxValueContainer",
comboboxValueContentClass: "comboboxValueContent",
comboboxDropDownClass: "comboboxDropDownContainer",
comboboxDropDownButtonClass: "comboboxDropDownButton",
comboboxDropDownItemClass: "comboboxItem",
comboboxDropDownItemHoverClass: "comboboxItemHover",
comboboxDropDownGroupItemHeaderClass: "comboboxGroupItemHeader",
comboboxDropDownGroupItemContainerClass: "comboboxGroupItemContainer",
animationType: "slide",
width: "150px"
})
});
</script>
<form id="form1" runat="server">
<asp:DropDownList ID="ddl1" runat="server" Width="150px" OnSelectedIndexChanged="onSelected_Changed"
AutoPostBack="true">
<asp:ListItem Text="sdfsdfsdf" Value="0"></asp:ListItem>
<asp:ListItem Text="sdfcvbcvxbcvbcvxbcvbsdfsdf" Value="0"></asp:ListItem>
<asp:ListItem Text="sdfsdcvbcvbcvbcvbcvbcvbcvbcvfsdf" Value="0"></asp:ListItem>
<asp:ListItem Text="cvbcdfgdfgdfgdfgdfgdfgdddddddddddddvbcvb" Value="0"></asp:ListItem>
<asp:ListItem Text="gddfgggggggggggggggggggggggggggggggggggggggdff" Value="0"></asp:ListItem>
<asp:ListItem Text="sdfsdfgdfgdfgdfgfsdf" Value="0"></asp:ListItem>
</asp:DropDownList>
<asp:Button ID="btn_select" Text="Replace Select Control" runat="server" />
</form>
</body>
</html>
1) In OnSelectedIndexChanged event nothing will happend...
2) this event not at fired....
protected void onSelected_Changed(object sender, EventArgs e)
{
}
can u use this code then can know..whats the issue....
please verify and let me know...
thanks
ramesh