Use the top left box in corner

Is there a way to put a heading in the top left box in the corner?


3 Replies

MM Manikandan Murugesan Syncfusion Team March 16, 2022 12:57 PM UTC

Hi Janson, 
 
The top-left cell of the Pivot Table can be customized by using the "CellTemplate" option. Please see the code below for an example. 
 
Code Example: 
<PivotViewTemplates> 
        <CellTemplate> 
            @{ 
                var data = (context as AxisSet); 
                if (data != null) 
                { 
                    @data.FormattedText 
                } 
                else 
                { 
                    <div class="empty-cell">@title</div> 
                } 
            } 
        </CellTemplate> 
    </PivotViewTemplates> 
 
Meanwhile, we have prepared a sample for your reference. Please find it from below link. 
 
Please check the following document for more information about “CellTemplate” option. 
 
Please let us know if you have concern. 
 
Regards, 
Manikandan 



JB Jason Bishop March 16, 2022 11:41 PM UTC

I'm not sure that is exactly what I'm looking for.  I want to put text in cell circled below:pivot.jpg



MM Manikandan Murugesan Syncfusion Team March 17, 2022 12:27 PM UTC

Hi Janson, 
 
We have prepared a sample for the same. Please follow the link provided below to access it. 

  
Screenshot: 
 
 
Please let us know if you have concern. 
 
Regards, 
Manikandan 


Loader.
Up arrow icon