Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
srinivasa reddy...
(9)
Babu Akkandi
(8)
Tejinder Singh ...
(6)
Last 7 Days
Appukuttan
(623)
Babu Akkandi
(445)
Tejinder Singh ...
(267)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
Solution for Dropdownlist or List to fit the lenghty items. (ASP.NET)
Posted Date: 19 May 2008
Resource Type:
Code Snippets
Category:
AJAX
Author:
Bharathi
Member Level:
Diamond
Rating:
Points
: 10
This is one of the solutions to fit the lengthy items of the dropdownlist:
By using ajaxToolkit: PopupControlExtender control.
Place the Dropdownlist in the popupcontrolextender like:
<ajaxToolkit:PopupControlExtender ID="<Control Name>" TargetControlID="<Target Control Id>" PopupControlID="<DropDownlist Id>" runat="server" />
Place a textbox and a dropdownlist. By setting the Target control as: Textbox, the user can see the textbox and on focus of the textbox the Dropdownlist will be popped up. Select a value from the dropdownlist and assign to the textbox.
Don’t specify the width for the dropdownlist, since the list should extended according to the length of the Listitems.
I the selectedindexchanged event of the dropdownlist call the function of ajaxcontrol as:
popupcontrolextender1.commit (dropdownlist1.selecteditem.text);
By doing so, the text of selected dropdownlist will be assigned as a textbox value and the popupcontrol gets hidden.
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
Using Ajax AutoCompleteExtender
Previous Resource:
Hover Menu Control + GridView
Return to Discussion Resource Index
Post New Resource
Category:
AJAX
Post resources and
earn money
!
Related Resources
Expand panel
AJAX(How to call a Asynchorous page Using Javascript)
AJAX in Pure ASP
Ajax Textbox with AutoComplete feature
Ajax Partial Page Update Example (Update panel)
dotNet Slackers
BizTalk Adaptors
Web Design
Contact Us
Privacy Policy
Terms Of Use