Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to load a 5000 item dropdownlist in the background?

How to load a 5000 item dropdownlist in the background?

Scheduled Pinned Locked Moved ASP.NET
javascriptdesigntutorialquestiondiscussion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dr_X
    wrote on last edited by
    #1

    How? Best Practice? I successfully set a dropdownlist's outerHTML using the RSexecute method in javascript (thycotic). However, the control does not hold state when posting back. The dropdown is declared at design-time with EnableViewState set to true, but setting the outerHTML is seems to lose the option list as well as the selected value. I tried to set the innerHTML of the dropdown control but that fails as well. Any other ideas? And no, there is no way to filter the data except by a character filter which the users are not interested in. The list consist of commonly used ships & barges in the gulf coast regions for transporting petroleum products. Thanks in advance, Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    D I 2 Replies Last reply
    0
    • D Dr_X

      How? Best Practice? I successfully set a dropdownlist's outerHTML using the RSexecute method in javascript (thycotic). However, the control does not hold state when posting back. The dropdown is declared at design-time with EnableViewState set to true, but setting the outerHTML is seems to lose the option list as well as the selected value. I tried to set the innerHTML of the dropdown control but that fails as well. Any other ideas? And no, there is no way to filter the data except by a character filter which the users are not interested in. The list consist of commonly used ships & barges in the gulf coast regions for transporting petroleum products. Thanks in advance, Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

      D Offline
      D Offline
      Daniel Santillanes
      wrote on last edited by
      #2

      Load with Ajax[^]? after page has loaded? daniero

      1 Reply Last reply
      0
      • D Dr_X

        How? Best Practice? I successfully set a dropdownlist's outerHTML using the RSexecute method in javascript (thycotic). However, the control does not hold state when posting back. The dropdown is declared at design-time with EnableViewState set to true, but setting the outerHTML is seems to lose the option list as well as the selected value. I tried to set the innerHTML of the dropdown control but that fails as well. Any other ideas? And no, there is no way to filter the data except by a character filter which the users are not interested in. The list consist of commonly used ships & barges in the gulf coast regions for transporting petroleum products. Thanks in advance, Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        Unfortunately that can be done. You can however do this: split the list up between serveral hidden fields. Once the page is loaded. Use javascript to slowly build the list. Thats your only option without a major change to the design 1 line of code equals many bugs. So don't write any!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups