This is a migrated thread and some comments may be shown as answers.

When set forecolor, text is cut off

1 Answer 77 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
willi
Top achievements
Rank 1
willi asked on 06 Jun 2013, 01:58 PM
Hi!

When I set 

newNode.ForeColor = Color.FromArgb(0, 105, 210)


in 2013.1.321.40 the Text is cut off Like this (see Attachement)

"LASTNAME ..."

Whats the problem?

Kind regards

Willi

Ps: 
Adding all nodes in a loop:
   Dim newNode As New RadTreeNode(String.Format("{0} {1}", row("kut_nachname").ToString.ToUpper, row("kut_vorname")))
              newNode.ImageKey = keyName
 
              If row("kb_freigegeben") = 0 Then
                  newNode.Font = New Font(newNode.Font.Name, New FontStyle() = FontStyle.Bold)
              End If
 
              If row("kut_metaid") > 0 Then
                  newNode.ForeColor = Color.FromArgb(0, 105, 210)
              End If
 
              newNode.Tag = New TreeNodeValue(row.Item("kb_id"), NodeValueType.KursTeilnehmerNode)
              parentNode.Nodes.Add(newNode)



1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 11 Jun 2013, 06:10 PM
Hello Willi,

Thank you for writing.

I tried to reproduce the issue you have described, but I was unable to do so. Generally the ForeColor does not have anything to do with how the text is measured or with AutoEllipsis. I would kindly ask you to send me your project or a sample where you are able to reproduce the issue so I can investigate it further and provide you with an adequate response. To attach files you will have to open a new support ticket. If you decide to do so, please mention this thread so we can update it with any further useful information that might help others searching for a solution to similar problems.

Looking forward to your reply.

Regards,
Ivan Petrov
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
Treeview
Asked by
willi
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or