Click here to Skip to main content
15,922,427 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI,
i have a requirement that in datagrid i have a drop down with items "A" "B" "C" and "Others"
so if i click on Others dropdown should be readonly and textbox should appear.

textbox is appearing but dropdown is not appearing as readonly .is this possibe to make dropdown as readonly.please help.

Thanks
Srinivasa
Posted

1 solution

How are you making the text box visible?? If using javascript then use the getElementById to get the DropDown and disable it by setting the disabled attribute

Do it as below:

document.getElementById('<%= DropDownList1.ClientID %>').disabled=false;



Hope it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900