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

Header Row in Table Design tab

2 Answers 20 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Clifford
Top achievements
Rank 1
Clifford asked on 14 Oct 2013, 10:01 PM
I noticed that there was a Header Row option available (ToggleTableLookFirstRowOptionCommand) but it does not seem to have any effect. Is there something I am doing wrong?

2 Answers, 1 is accepted

Sort by
0
Accepted
Mihail
Telerik team
answered on 17 Oct 2013, 08:27 AM
Hello Clifford,

 If you want the ToggleTableLookFirstRowOptionCommand to work you first have to apply table style which has conditional style for the first row, also known as header row.

You can do so by creating a simple table style and add it as conditional first row style into another table style. Here is example on how you can do it:

StyleDefinition customTableStyle = new StyleDefinition("MyCustomTableStyle", StyleType.Table);
customTableStyle.BasedOnName = RadDocumentDefaultStyles.DefaultTableGridStyleName
 
StyleDefinition firstRowStyle = new StyleDefinition(StyleType.Table);
firstRowStyle.TableCellProperties.Background = Colors.Green;
 
customTableStyle.ConditionalTableStylesCollection.Add(ConditionalTableStyleTypes.FirstRow, firstRowStyle);

 Please do not forget to register any custom style definitions into the style repository of the document.

Regards,
Mihail
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Clifford
Top achievements
Rank 1
answered on 30 Oct 2013, 09:31 PM
Thanks, worked
Tags
RichTextBox
Asked by
Clifford
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Clifford
Top achievements
Rank 1
Share this question
or