Wrox Programmer Forums
|
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
 
Old May 18th, 2004, 04:43 AM
Registered User
 
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old May 18th, 2004, 06:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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.
 
Old May 18th, 2004, 07:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Tooltip would apply to the control and not the individual items. Just curious, why can't you increase the width?


 
Old May 19th, 2004, 12:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Did u try using percent instead of exact size?! maybe this can help.

Always:),
Hovik Melkomian.
 
Old May 19th, 2004, 12:33 AM
Registered User
 
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old May 19th, 2004, 07:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can try changing the zindex to make it rest over the datagrid.

 
Old May 22nd, 2004, 12:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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.
 
Old May 24th, 2004, 11:43 PM
Registered User
 
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old May 25th, 2004, 11:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Well let me work on & tell u.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdownlist Is viewing too long msbsam ASP.NET 2.0 Basics 1 January 30th, 2008 10:38 AM
auto match text in dropdownlist swastikagaur Classic ASP Professional 1 June 15th, 2005 05:40 PM
No of users viewing ruhin PHP How-To 0 February 9th, 2005 09:50 AM
enter text in dropdownlist Anjali General .NET 2 September 30th, 2004 01:40 AM
viewing records sinner Classic ASP Databases 2 March 20th, 2004 06:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.