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

  • SEARCH
  • Home
  • 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 3792474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:37:40+00:00 2026-05-19T12:37:40+00:00

i have a filter panel with 5-6 combo boxes ajax control tool kit.. i

  • 0

i have a filter panel with 5-6 combo boxes ajax control tool kit..

i want this filter panel to be visible false by default.. and toggle it(show/hide) on client click using java script

however when i have my filter panel as visible = false runat=server java script does not get the object

and if i do code behind.. filterpanel.attributes.add(“style”,display:none)
filterpanel.attributes.add(“style”,visibilty:hidden)

the combo box throws a runtime error..

i’ve searched on the net which says.. combo box is difficult to render inside a panel.. whose default property is initially false!

  • 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-05-19T12:37:41+00:00Added an answer on May 19, 2026 at 12:37 pm

    The problem is that the <select> elements have to be rendered (but not necessarily visible) in order to reliably access their dimension properties.

    So display: none; won’t work because the elements are not rendered, and visibility: hidden; will partially work because the elements are rendered, so space is allocated for them on the page, but hidden, so that space will remain empty.

    A third solution is to render the container as usual, but make it absolutely positioned outside of the browser viewport:

    filterPanel.Attributes.Add("style",
        "position: fixed; left: -10000px; top: -10000px;");
    

    That way, the panel and its contents won’t be visible, but the size of the <select> elements will be properly computed.

    On the client side, the formula to show the panel becomes:

    document.getElementById("filterPanelClientID").style.position = "static";
    

    And to hide it again:

    document.getElementById("filterPanelClientID").style.position = "fixed";
    

    You can test a jQuery-based implementation here.

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

Sidebar

Related Questions

I want to pre-filter* data in the invoice grid visible in Magento's admin panel.
I have this method on a webpart: private IFilterData _filterData = null; [ConnectionConsumer(Filter Data
I have two update panels at my ajax page. This is first time I'm
I have to filter GridView data based on the Tab Panel selected, Here is
i have added filter to each of the columns in a grid panel. When
I have a Gridview that I want to filter. My gridview is in an
Ok, I have made a twitter-style control panel to apply filters and sorting to
I have a filter attribute that I'd like to be applied to every action
I have a query filter written in human readable language. I need to parse
I have a checkstyle suppression filter setup (e.g. ignore magic numbers in unit test

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.