Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a textarea ,and I type a long text in it ..and applied css in it ..and in css overflow : auto. So I get scroll bar..but when I disable the textarea..Then cannot see all the data (because the scroll bar is disable ) ..plz give a solution for this...
Posted

1 solution

That's the expected behavior.

Possible alternative is to have a readonly textarea instead of disabled one. This also makes the text quite readable as disabled textarea is difficult to read.
 
Share this answer
 
v2
Comments
StianSandberg 23-Apr-13 7:25am    
perfect solution! 5'd
aravindnass 23-Apr-13 7:40am    
But I didn't get the readonly property of listbox..I want readonly for listbox at certain condition...( I don't want listbox.enable=false).
StianSandberg 23-Apr-13 7:43am    
listbox?
Sandeep Mewara 23-Apr-13 7:45am    
For listbox, easier way would be to put the listbox in a div with scroll. Disable the listbox. This way, you can scroll the div and look at all the items of listbox.
aravindnass 23-Apr-13 7:34am    
I have use listbox in webapplication(asp.net)

<asp:ListBox ID="lstRoutes" runat="server" SelectionMode="Multiple"
CssClass="listbox" onselectedindexchanged="lstRoutes_SelectedIndexChanged">

in code
---------

I didn't get read only property of list box
lstRoutes.read......??

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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