Link to home
Start Free TrialLog in
Avatar of haithinh81
haithinh81

asked on

how to disable some item in checklistbox

how to disable some item in checklistbox
Avatar of Kim Ryan
Kim Ryan
Flag of Australia image

what language, HTML, javascript??
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
Avatar of RaheelHannan
RaheelHannan


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
ASKER CERTIFIED SOLUTION
Avatar of quannv
quannv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
?!

_______________

  Nayer Naguib