By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,683 Members | 1,597 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,683 IT Pros & Developers. It's quick & easy.

dropdownlist with several columns

P: n/a
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
Jun 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jun 8, 10:35 am, Alex Sadomov <alexey.sado...@connective.sewrote:
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.displ ay=="block" ?
"none" : "block");
}

Jun 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.