public void ColummRender(ColumnRenderEventArgs args)
{
//you can set column width
args.Columns[1].Width = "200";
args.Columns[2].Width = "150";
} |
Hi Saranya,
May I ask is there any way to get the width of each column if the user drag the width of particular column in pivot table?
Hi Eric,
Using “ResizeStop” event, you can get the width of the column after resizing. Please refer to the following code example.
Code Example:
<SfPivotView>
<PivotViewEvents TValue="TValue" ResizeStop="Resize">
</PivotViewEvents>
</SfPivotView>
@code {
private void Resize(ResizeArgs args)
{
string width = args.Column.Width;
}
}
Meanwhile we have prepared a sample for your reference
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PivotTable1581660456
Please let us know if you have any concerns occur.
Regards,
Rajeshkannah G.
Muy buena tarde
Al implementar el ejemplo, no funciona como se esperaría, dado que los títulos se separan de las columnas.
Adjunto imagen con el caso.
Hi Fundación,
We checked the reported problem and were unable to reproduce it on our end in our latest version v20.4.0.44. We would also like to inform you that we have already fixed this issue in our 2022 Volume 4 Main release (v20.3.0.38). Based on the we believe that you are using an older version that may causing the reported issue at our end. To resolve the issue at your end, we recommend you to update the NuGet packages to the latest version v20.4.0.44.
Please refer the following UG document link for upgrading to latest NuGet packages.
Document:
https://blazor.syncfusion.com/documentation/upgrade/upgrade-syncfusion-blazor-nuget-packages
Meanwhile, we have prepared a sample for your reference below.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SyncfusionPivotBlazor1763713247
Output Screenshot:
Please let us know if you have any concern occurs.
with regards,
Rajeshkannah G