haithinh81
asked on
how to disable some item in checklistbox
how to disable some item in checklistbox
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
_______________
Nayer Naguib
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
?!
_______________
Nayer Naguib
_______________
Nayer Naguib