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. Dropdownlist

Dropdownlist

Scheduled Pinned Locked Moved ASP.NET
htmlquestion
4 Posts 2 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.
  • C Offline
    C Offline
    colin mcadam
    wrote on last edited by
    #1

    Hi I want to have the text for the items in my dropdownlist to spaced out using tabs because the field values are of differing lengths. Like this; HEADING1 HEADING2 HEADING3 data data data data data data data data data All lined up correctly but HTML doesnt understand "\t" and using "Ampersand nbsp semicolon" doesn't seem to work and lots of spaces are just taken as 1 Anybody done this before? There must be a way to do it? :doh: Thanks Colin

    M 1 Reply Last reply
    0
    • C colin mcadam

      Hi I want to have the text for the items in my dropdownlist to spaced out using tabs because the field values are of differing lengths. Like this; HEADING1 HEADING2 HEADING3 data data data data data data data data data All lined up correctly but HTML doesnt understand "\t" and using "Ampersand nbsp semicolon" doesn't seem to work and lots of spaces are just taken as 1 Anybody done this before? There must be a way to do it? :doh: Thanks Colin

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi Colin, You might try the  

      colin mcadam wrote:

      There must be a way to do it?

      Are you so sure about this? ;P

      C 1 Reply Last reply
      0
      • M minhpc_bk

        Hi Colin, You might try the  

        colin mcadam wrote:

        There must be a way to do it?

        Are you so sure about this? ;P

        C Offline
        C Offline
        colin mcadam
        wrote on last edited by
        #3

        wont work as the text is of varying length I hope there is a way to do it!

        M 1 Reply Last reply
        0
        • C colin mcadam

          wont work as the text is of varying length I hope there is a way to do it!

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          + You might try to use that value with the space, by this I mean it can look something like: "   " + Another option comes to mind is to use the custom dropdownlist that supports displaying the items in the datagrid format. AFAIK, there are a couple of articles posted on CP, you might want to look for them.

          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