Results 1 to 3 of 3

Thread: ReadOnly radiobuttonlist and dropdownlist

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    137

    ReadOnly radiobuttonlist and dropdownlist

    I'm trying to disable the radiobuttonlist and dropdownlist for certain users on a site. When the radionbuttonlist and dropdownlist are disabled(greyed out), its hard to read. Is there another way I can handle this? Can this be done with JavaScript?

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ReadOnly radiobuttonlist and dropdownlist

    Hey,

    I guess it depends on what you are trying to achieve.

    Is it the case that the user shouldn't be able to see the radiobuttonlist, or that they shouldn't be able to edit it. For instance, can you simply not allow the user to visit the page that the radiobuttonlist is on. Or, rather then rendering it as a radiobuttonlist, can you not simply render it as a bulletedlist.

    Hope that helps!!

    Gary

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: ReadOnly radiobuttonlist and dropdownlist

    I don't think you can change the CSS of a disabled field, but on the other hand, you could make the fields "readonly" and then set a custom CSS style so that the users can still click on it, but nothing should happen (and in your code, you should ignore it too).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width