Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Radiobutton list in a module Radiobutton list in a module
Previous
 
Next
New Post
3/30/2006 10:53 AM
 
Not sure this can be done at all much less in DNN - what to have like ten items in a radiobutton list however depending on some settings only one or two of those may be available to be picked - is there a way to grey out or disable only one or two items in a radio button list?

Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
3/30/2006 11:08 AM
 
First, one might ask why you have options that can't be selected. Beyond that, all you should have to do is set those radio buttons to be disabled (Enabled="false"). That's just off the top of my head, but I can't think of why that wouldn't work. Have you tried this?

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
3/30/2006 12:22 PM
 
Well an individual radio button has that property but if its in a radio button list i dont see it (unless I missed something ) maybe you could point it out >

Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
3/30/2006 12:59 PM
 
I stand corrected. Looks like the Enabled property is only for .NET 2.0. Sorry! Perhaps you could use post-backs to remove unwanted items from the list, but that's about the only solution I can give you when using the RadioButtonList (outside of replacing it with RadioButton controls, obviously).

http://msdn2.microsoft.com/en-US/library/system.web.ui.webcontrols.listitem_members(VS.80).aspx

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
3/30/2006 1:05 PM
 
One option you might want to try, if you're interested enough, is to add an attribute in code-behind to disable it.

colorPicker.Items[1].Attributes.Add("disabled", "true");

I can't remember the correct property, but I know to do it in JavaScript, it's disabled (if not, try enabled). Hope this helps. Unfortunately, I can't test it out right now.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Radiobutton list in a module Radiobutton list in a module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out