Tutorials
Resources
Forum
Reviews
Communities
Interview
Jobs
Projects
Training
Your
Ad
Here
Silverlight Games
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Polls
|
Revenue Sharing
|
Lobby
|
Gift Shop
|
New Posts
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
srinivas
(188)
hidhayath
(52)
fareen
(43)
Last 7 Days
srinivas
(1010)
Angna Upadhyay
(562)
Dharmendra Kum...
(194)
more...
Resources
»
Code Snippets
»
AJAX
»
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 to the resource: "Solution for Dropdownlist or List to fit the lenghty items. (ASP.NET)"
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
to add tags.
(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
!
More Resources
Using Ajax AutoCompleteExtender
How to write ScriptManager and Javascripts for Ajax
DropDown Designer
Ajax DropDownList
Tree view ::Using Populate On Demand and AJAX
Check userName availability
About Us
Contact Us
Privacy Policy
Terms Of Use