UserInfo() Has BackColor but is missing the ForeColor Property

1 Answer 101 Views
TaskBoard
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 18 Oct 2021, 04:18 PM

It's great being able to set the backcolor for userinfo() values.

However, the ForeColor property is missing or is hidden...
It appears that the "Hidden" Forecolor property is set to White.

Consequently, one cannot set a contrasting forecolor for the given backcolor that is used.

For Example:

Private user1 As UserInfo = New UserInfo()
user1.FirstName = _UserFirstName
user1.LastName = _UserLastName
User1.BackColor = Color.LightYellow

What is needed now for the contrasting ForeColor would be this:
User1.ForeColor = Color.Black

Currently, if the backcolor is set to a very light back color - one cannot read the White ForeColor text

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Oct 2021, 10:10 AM
Hello, Martin,

I have prepared a sample code snippet demonstrating how to specify the ForeColor for the user element for a task card:
        Dim card As RadTaskCardElement = New RadTaskCardElement()
        card.TitleText = "ListView improvements"
        card.DescriptionText = "Research phase"
        card.AccentSettings.Color = Color.Red
        card.Users.Add(user1)
        card.Users.Add(user2)
        Dim userElement As RadTaskCardUserElement = TryCast(card.UserElements(0), RadTaskCardUserElement)
        userElement.ShownElementProperty = RadTaskCardUserElement.ShownElement.InitialsOverAvatar
        userElement.ForeColor = Color.Red

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 19 Oct 2021, 04:51 PM

Dess, thank you for pointing out how to achieve this....

But it does seem odd to have to go to such length of code when clearly the BackColor Property exists.... but not a ForeColor Property.

I doubt that many developers would have been able to achieve this in the absence of your code... and would simply be looking for a ForeColor property.

Anyway, Thank you very much.

The TaskBoard Control is very cool and thanks to ALL of your help - I have a fully functional Database driven Kanban board.

There is still room for improvement and hopefully the next version of the control will have many of the Improvement that I have suggested.  I look forward to the other posts that I made being addressed soon.

Once again, thank you for your help

Dess | Tech Support Engineer, Principal
Telerik team
commented on 20 Oct 2021, 05:00 AM

HI, Martin,

Indeed, having the ForeColor along with the other settings for the UserInfo would be a nice addition to RadTaskBoard. That is why I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points

Tags
TaskBoard
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or