Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webcontrols
Re: Tooltip in a RadioButtonList
chetan warade
12/9/2010 1:35:00 PM
Here is the trick
http://chetanwarade.wordpress.com/2010/12/04/radiobuttonlist-title-...
> On Tuesday, August 28, 2007 5:02 PM Gre wrote:
> Is there a way to set the tooltips of the individual items in a
> RadioButtonList?
>
> The RadioButtonList control has a ToolTip property, but that sets the
> tooltip for the entire control by setting the Title attribute of the
> containing table. I'd like to set a tooltip for each button.
>
> Thanks,
> Greg
>> On Tuesday, August 28, 2007 8:20 PM Bruno Piovan wrote:
>> Hi Greg,
>> a quick way to do that would be to use a tag like span in the text property
>> of each item, like:
>>
>> RadioButtonList1.Items.Add(New ListItem("<span title='ToolTip Here'>Text
>> Here</span>", "value here"))
>>
>> or you can add the "title" attribute to the listitem class, like:
>>
>> Dim li As New ListItem("text here", "value here")
>> li.Attributes.Add("title", "tooltip here")
>> RadioButtonList1.Items.Add(li)
>> this will cause a span tag to be rendered as well.
>>
>> I hope it helps,
>> Bruno
>>
>> "Greg" <Greg@discussions.microsoft.com> wrote in message
>> news:B009519C-D997-4D8B-9262-A2516997297E@microsoft.com...
>>> On Wednesday, August 29, 2007 10:28 AM Gre wrote:
>>> Bruno,
>>>
>>> Thanks so much! I added the title attribute and the individual tooltips
>>> showed up just as I'd been trying to do! I'd just about given up on it...
>>>
>>> Thanks again!
>>> Greg
>>>
>>>
>>> "Bruno Piovan" wrote:
>>> Submitted via EggHeadCafe
>>> Microsoft LINQ Query Samples For Beginners
>>>
http://www.eggheadcafe.com/training-topic-area/LINQ-Standard-Query-Operators/33/LINQ-Standard-Query-Oper...
1 Answer
chetan warade
5/20/2011 11:01:00 AM
0
http://codesstuff.blogspot.com/2011/05/radiobuttonlist-add-title-for-...
> On Tuesday, August 28, 2007 5:02 PM Gre wrote:
> Is there a way to set the tooltips of the individual items in a
> RadioButtonList?
>
> The RadioButtonList control has a ToolTip property, but that sets the
> tooltip for the entire control by setting the Title attribute of the
> containing table. I'd like to set a tooltip for each button.
>
> Thanks,
> Greg
>> On Tuesday, August 28, 2007 8:20 PM Bruno Piovan wrote:
>> Hi Greg,
>> a quick way to do that would be to use a tag like span in the text property
>> of each item, like:
>>
>> RadioButtonList1.Items.Add(New ListItem("<span title='ToolTip Here'>Text
>> Here</span>", "value here"))
>>
>> or you can add the "title" attribute to the listitem class, like:
>>
>> Dim li As New ListItem("text here", "value here")
>> li.Attributes.Add("title", "tooltip here")
>> RadioButtonList1.Items.Add(li)
>> this will cause a span tag to be rendered as well.
>>
>> I hope it helps,
>> Bruno
>>
>> "Greg" <Greg@discussions.microsoft.com> wrote in message
>> news:B009519C-D997-4D8B-9262-A2516997297E@microsoft.com...
>>> On Wednesday, August 29, 2007 10:28 AM Gre wrote:
>>> Bruno,
>>>
>>> Thanks so much! I added the title attribute and the individual tooltips
>>> showed up just as I'd been trying to do! I'd just about given up on it...
>>>
>>> Thanks again!
>>> Greg
>>>
>>>
>>> "Bruno Piovan" wrote:
>>>> On Thursday, December 09, 2010 7:35 AM chetan warade wrote:
>>>> Here is the trick
http://chetanwarade.wordpress.com/2010/12/04/radiobuttonlist-title-...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Tooltip in a RadioButtonList
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password