RE: text truncation in dropdownlist control
From: James (KarmaJangchup_at_community.nospam)
Date: 01/31/05
- Next message: DC Gringo: "button to export to excel"
- Previous message: chuck_at_digitalinnovators.com: "Customize DataList ItemType?"
- Next in thread: Steven Cheng[MSFT]: "RE: text truncation in dropdownlist control"
- Reply: Steven Cheng[MSFT]: "RE: text truncation in dropdownlist control"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 Jan 2005 15:01:04 -0800
Thanks Steven, but I have had a good look at all of the items you mention in
your note and none of them really seems to fit the requirement. The main
reason being that each item in the drop down list must have it's own tool tip
(since the tip is actually the full text of the truncated value in the
dropdown). In addition, the dropdown is populated via a database table and so
the code to implement the whole thing needs to be simple/elegant/maintainable
as it is part of a web application which I would like to keep focused on
function and not clouded too much by convoluted script simply to display a
full line of text in a dropdown (if you know what I mean).
I guess this all relates to issues in IE and technically not ASP.NET or
related. However if one of the purposes of .NET is to provide a good
framework for building web applications, something seems to have slipped
through the cracks if simple tasks can not be implemented without resorting
to html client side script coding. The added complexity and mix of coding
techniques tends to make applications less maintainable and more open to
problems. My opinion for what it is worth. So don't know if you or anyone
else has any other ideas that may be a bit more tidy. But, in any event,
thank you very much for your effort.
Cheers
James
"Steven Cheng[MSFT]" wrote:
> Hi James,
>
> Thanks for your posting. Yes, as you've found the ASP.NET's DropDownlist
> (and also the ListBox control) dosn't support the ToolTip feature. To
> workaround this, we may need to manually use script to dynamically create a
> show a <div> or use the window.createPopup function to create a popup
> layer. And following is a msdn sample which including a demo for show a
> custom tooltip via window.createPopup. This function is supported by IE.
>
> http://msdn.microsoft.com/workshop/samples/author/dhtml/popup/usingpopup.htm
>
> Also , there is some other approach such as using <layer>
>
> http://developer.irt.org/script/1484.htm
>
> http://www.siteexperts.com/tips/elements/ts10/page5.asp
>
> Hope helps. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
- Next message: DC Gringo: "button to export to excel"
- Previous message: chuck_at_digitalinnovators.com: "Customize DataList ItemType?"
- Next in thread: Steven Cheng[MSFT]: "RE: text truncation in dropdownlist control"
- Reply: Steven Cheng[MSFT]: "RE: text truncation in dropdownlist control"
- Messages sorted by: [ date ] [ thread ]