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
ChandraShekarT...
(26)
Jeny Young
(14)
D.Jeya kumar(J...
(13)
Last 7 Days
UmaShankar
(1086)
ANIL PANDEY
(659)
Deepika Harida...
(498)
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
Posted By:
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
how to create an sort array in javascript
Ajax Partial Page Update Example (Update panel)
Change the image on webpage using AJAX
Length of a String in JavaScript
How to write ScriptManager and Javascripts for Ajax
dotNet Slackers
BizTalk Adaptors
Web Design
doors in nj
Contact Us
Privacy Policy
Terms Of Use