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

In a column with a Boolean value, the TextAlignment property has no effect

3 Answers 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 16 Mar 2013, 04:13 PM
Hello,
when I use a column bound to a Boolean value, the TextAlignment property has no effect, even when the Boolean value is converted to a string using a converter.
Patrick

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 20 Mar 2013, 03:05 PM
Hello Patrick,

This is a known issue that has a trivial solution. You can create a style for the GridViewCell in that Column and set the ContentHorizontalAlignment instead. 
The problem is that the TextAlignment property is used when the column is bound to a text property and that isn't the case with the boolean values.

Let me know if I can help you further with this! 

Kind regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 02 Apr 2013, 02:18 PM
Nik,
first, if I use a converter to convert the Boolean value to a String, the type of the column is a String, not a Boolean.
Second, it would be much more interesting to have a ContentHorizontalAlignment property instead of a TextAlignment property. Such a property could be use for any column type...
Patrick
0
Nick
Telerik team
answered on 03 Apr 2013, 11:28 AM
Hi Patrick,

Thank you for your feedback. We will consider the suggestion for our future releases. 

Greetings,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nick
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or