[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

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-...