 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

May 18th, 2004, 04:43 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Viewing DropDownList Text
Hi,
I have a DropDownList inside a datagrid. It has a fixed width. So when the text inside the dropDown is larger, it is not possible to view the text inside the dropdown. I can't increase the width of the dropdown also. Is there any way, when the user selects a text from the dropdown, he can see the text?. Something like a tooltip.. I am binding the dropdownlist through a dataset from the database.
Thanks and Regards,
Seby
|
|

May 18th, 2004, 06:29 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
I dont know ur situation well, but I guess u can use Title for that! but u'll have to set the value manually.
HTH, Keep in touch.
Always:),
Hovik Melkomian.
|
|

May 18th, 2004, 07:41 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Tooltip would apply to the control and not the individual items. Just curious, why can't you increase the width?
|
|

May 19th, 2004, 12:00 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
Did u try using percent instead of exact size?! maybe this can help.
Always:),
Hovik Melkomian.
|
|

May 19th, 2004, 12:33 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
Thanks for the reply. I can't increase the width or use percentage for the DropDownList since it will affect the Datagrid and also the Text size can increase for certain values. I know that there is a property called ToolTip() for dropdownlist. But I don't know how to use it or whether I can use it for the values..
Is there any other solution for this..?
Thanks and Regards,
Seby
|
|

May 19th, 2004, 07:39 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
You can try changing the zindex to make it rest over the datagrid.
|
|

May 22nd, 2004, 12:14 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
if u think a tooltip will do ur job:
Code:
this.toolTip1.SetToolTip(Control_name, "Tolltip Mess");
but u have to set it for OnChange event too! or use title for ur Select & set it by JavaScript as a client-Script.
HTH.
Always:),
Hovik Melkomian.
|
|

May 24th, 2004, 11:43 PM
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
Thanks for the solution. But how do I implement this for the dropdownlist. Do I need to call this as a Javascript function in the onChangeEvent..? what does toolTip1 represents.?
can u please provide a sample code.
Regards,
Seby
|
|

May 25th, 2004, 11:08 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
Well let me work on & tell u.
Always:),
Hovik Melkomian.
|
|
 |