Header Row in Table Design tab

3 posts, 1 answers
  1. Clifford
    Clifford avatar
    25 posts
    Member since:
    Sep 2013

    Posted 14 Oct 2013 Link to this post

    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. Answer
    Mihail
    Admin
    Mihail avatar
    192 posts

    Posted 17 Oct 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Clifford
    Clifford avatar
    25 posts
    Member since:
    Sep 2013

    Posted 30 Oct 2013 Link to this post

    Thanks, worked
Back to Top