asp.net ajax toolkit combobox dosen't work in hidden div
Posted
by sam
on Stack Overflow
See other posts from Stack Overflow
or by sam
Published on 2010-03-28T22:28:14Z
Indexed on
2010/03/28
22:33 UTC
Read the original article
Hit count: 655
i have a combobox inside a hidden div which i use css display = none to make it invisible, but when i make the div visible by setting display = block, the combobox just show the input and its button and ul list all have css as display = 'none', visibility ='hidden', i can tell it is done by combobox inbuild javascript because i tried to use javascript to set the css manually with no luck. It is a bug of combobox, urgent help needed, i spent a week to solve this, and our team put a lot trust on the toolkit ,please help me on this all javascript gurus , thanks.
Admin please let my code sample be visible , thanks a lot.
below is the code to reproduce the bug, run it you cant see the dropdown:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
a d f click me
<script type="text/javascript">
function show() {
var d = $get('d');
d.style.display = 'block';
}
</script>
© Stack Overflow or respective owner