C# .NET - how to handle long text in dropdownlist control in ASP.NET

Asked By Arun Kumar on 10-May-13 02:41 AM

IE problem,

i have one dropdown list which is pouplated by database . Its value feild contain records id and option feild contain the text of record . But the record text entries are very long and makes my dropdown so long that it totally chnage the outlook of my webpage. when i cut down the width it also cut down the text displayed . Is there any option that my webpage also looks good and user can see the full text as well like Wraping text or scroll or any thing like that...

how to handle this ... please help me

Ramendra Kumar replied to Arun Kumar on 10-May-13 08:54 AM
is it necessary for you to go with a drop down if not then use ajax auto complete,else let me know
Robbe Morris replied to Arun Kumar on 10-May-13 09:10 AM
Do some search on using a DIV tag as your drop down control instead.  It would enable you wrap text and control the width.  There are commercial controls available for purchase but you can also find a lot of freebie controls that work as well.  Hide/Show div and scrollable div are good search terms.  You might find something in jquery too.
Arun Kumar replied to Ramendra Kumar on 10-May-13 09:48 AM
Ya because i  implemented drop down every where . Now i got this error from QA.  
Any possibilities is there ?
Arun Kumar replied to Robbe Morris on 10-May-13 09:53 AM
Mr .Robb  i checked with div but its not working in IE .        Any possibilities is there,? Can u help me?
Ramendra Kumar replied to Ramendra Kumar on 13-May-13 03:10 AM
Do one thing at the time of getting data from database or somewhere else get his length if length more than your desire , modify that text with suppose You Want 4 Letters then use liek this RAME.. make it inside a div and add and dont forget to add onmououse over event on that div, now put your all text in another div like this <div id="AnyLoopValue To make it distungish" >RAMENDRA KUMAR</DIv>now on mouse over even show this div and on mouse out again hide this you can also use Jquery Toggle Function.I did it through this way earlier. if you need more help let me know ....
Ramendra Kumar replied to Arun Kumar on 13-May-13 03:10 AM
Do one thing at the time of getting data from database or somewhere else get his length if length more than your desire , modify that text with suppose You Want 4 Letters then use liek this RAME.. make it inside a div and add and dont forget to add onmououse over event on that div, now put your all text in another div like this <div id="AnyLoopValue To make it distungish" >RAMENDRA KUMAR</DIv>now on mouse over even show this div and on mouse out again hide this you can also use Jquery Toggle Function.I did it through this way earlier. if you need more help let me know ....
Arun Kumar replied to Ramendra Kumar on 17-May-13 03:14 AM
i done wth div tag