dropdownlist with several columns

  • Thread starter Thread starter Alex Sadomov
  • Start date Start date
A

Alex Sadomov

Hi
Is there control for web which looks like as simple dropdownlist, but when
selected it shows several columns instead one as standard dropdownlist does?
The example of similiar control can be found in MS Access application
 
Hi
Is there control for web which looks like as simple dropdownlist, but when
selected it shows several columns instead one as standard dropdownlist does?
The example of similiar control can be found in MS Access application

That's something can be easily done using a DataList control and
javascript

Add a link

<a onclick="script_to_show_hidden_div();" href="#">Show 'dropdown'</a>

Add a div

<div id="dropdown1" style="display: none">
<asp:DataList .......></asp:DataList>
</div>

That's almost all.

script_to_show_hidden_div() {
document.getElementById('dropdown1').style.display=(document.getElementById('dropdown1').style.display=="block" ?
"none" : "block");
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top