[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

how to disable some item in checklistbox

how to disable some item in checklistbox
0
haithinh81
Asked:
haithinh81
1 Solution
 
Kim RyanIT ConsultantCommented:
what language, HTML, javascript??
0
 
nayernaguibCommented:
If you are talking about the .NET CheckedListBox, then, as far as I know, you cannot disable and enable single items. It is intended to be used as a listbox (i.e., when an item should be disabled, you need to remove it from the list).

_______________

  Nayer Naguib
0
 
RaheelHannanCommented:

i u say dynamically, it is possible. like i have a list of values and wants to show in checkbox.. so u can do it as follows:

we have a table having 2 fields.... category and status.... (in status field we mention the action either it is enabled for user or not)

Logic is simple....

open the connection...
here u check what value u stored in status field ....

if (status not equels to "enabled") then
<input checkbox field set property.... disabled="disabled">
else
show as it is ....
end if
close connection

I hope this will solve ur problem

Raheel
0
 
quannvCommented:
You need remove the unwanted checkbox instead of disabling
0
 
nayernaguibCommented:
?!

_______________

  Nayer Naguib
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now