• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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