Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8046965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:57:32+00:00 2026-06-05T05:57:32+00:00

I have a custom table which I’d like to use as the DropDown portion

  • 0

I have a custom table which I’d like to use as the DropDown portion as a DropDownList.

Table

Ideally, when users click on a DropDownList, it should show the custom table instead of the usual drop down. I thought it’d be easy to prevent the dropdown from opening without disabling the DropDownList control, however that doesn’t appear to be the case.

Is there an easy way to prevent a DropDownList from opening without disabling it?

Edit: This has to work for an embedded IE 7 web browser, and e.preventDefault() does not work in that browser version

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:57:34+00:00Added an answer on June 5, 2026 at 5:57 am

    You can do something like this:

    Basically, I have positioned an invisible div over the dropdown to block it, and you can handle the click with the onclick of the masking div.

    EDIT: I have updated this http://jsfiddle.net/EdM7B/1/

    <div id='mask' onclick='alert("clicked");' style='width:200px; height:20px; position:absolute; background:white;filter:alpha(opacity=0);'></div>
    <select id='selectList' show=1 style='width:200px; height:20px;'>
        <option>Test</option>
    </select>
    

    I had to use a sort of hack because IE doesn’t seem to render divs properly that have no background colour set, so it wasn’t working correctly. This works in my IE7.

    If you want it to work in all browsers you’ll need to add chrome/firefox opacity CSS or have some IE only CSS to apply background colour.

    I think due to the way it’s positioned above, the opacity is actually not working properly because the element is positioned absolutely, either way it seems to work. I originally had it as opacity 1, but that sounds wrong to me as we want it invisible, so I changed it to 0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have cursor which selects records from my CarProfile table and use custom adapter
I have a custom table created which has a foreign constraint on the core_website
I have a table cell with a custom backgroundView which looks great while in
I have a custom class that I use to build table strings. I would
I have a news table and I would like to implement custom ordering. I
I have several parts in my app where I use custom table view cells.
I have a custom table cell which contains a number of UILabels. At runtime,
I have a field from a custom table which is timestamp. I need to
I have a application which I would like to add custom fields to the
I have a UITapGestureRecognizer in a custom table cell which is intended to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.