Is there a way to create a tooltip when hovering over the UserInfo Element

1 Answer 21 Views
TaskBoard
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 16 Nov 2021, 06:03 PM

I'd like to be able to display a tooltip containing the full name of the person when the user hovers the mouse over the UserInfo Elements of a task card.

Is there a way this can be accomplished?

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 17 Nov 2021, 12:46 PM

Hello Martin,

The UserInfo element is represented by a RadTaskCardUserElement. You can access these elements from the UserElements property of the RadTaskCardElement. You can iterate the collection and set the ToolTipText property. You can check the following code snippet.

UserInfo user1 = new UserInfo();
user1.FirstName = "Anne";
user1.LastName = "Dodsworth";

UserInfo user2 = new UserInfo();
user2.FirstName = "Andrew";
user2.LastName = "Fuller";

RadTaskCardElement card = new RadTaskCardElement();
card.TitleText = "ListView improvements";
card.DescriptionText = "Research phase";

card.Users.Add(user1);
card.Users.Add(user2);

foreach (RadTaskCardUserElement item in card.UserElements)
{
	item.ToolTipText = item.UserInfo.FirstName + " " + item.UserInfo.LastName;
}

Here is the result on my side. 

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 17 Nov 2021, 12:59 PM

Dinko

That's Perfect and so elegantly simple...

Thank You

Tags
TaskBoard
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dinko
Telerik team
Share this question
or