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

SubTotal Theme Issue

1 Answer 75 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
Jacky
Top achievements
Rank 1
Jacky asked on 06 Jul 2014, 09:21 AM
the grid is shown as collapsed,  after Expand all,  the theme is not correct on DataCell and SubTotal Cell.

reproduce steps:
1. set text is bold on SubTotal Cell ,  reference Step1.jpg
2. set AutoExpandColumnHeaders = False   .AutoExpandRowHeaders = False
3. bind data
4. Expand All,   a part of text is bold on datacell,  see step2.jpg

what is wrong?

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 10 Jul 2014, 05:47 AM
Hello Jacky,

Thank you for writing.

I can confirm this issue with RadPivotGrid. I have logged it in our Feedback Portal. You can find the item here: UI for Winforms Feedback Portal - FIX. RadPivotGrid - Setting a Bold font in theme to PivotCellElement.GrandTotalRow shows bold text when not needed. As a workaround you can use CellFormatting:
Font font;
void pivot_CellFormatting(object sender, PivotCellEventArgs e)
{
    if (e.CellElement.IsInGrandTotalRow)
    {
        if (font == null)
        {
            font = new Font(e.CellElement.Font.FontFamily, e.CellElement.Font.Size, FontStyle.Bold);
        }
 
        e.CellElement.Font = font;
    }
    else
    {
        e.CellElement.ResetValue(VisualElement.FontProperty, ValueResetFlags.Local);
    }
}

I have also updated your Telerik Points for this report.

Let me know, should you have further questions.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
PivotGrid and PivotFieldList
Asked by
Jacky
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or