PivotViewConditionalFormatSetting

How can i assign dynamically to "Value1" from my TValue? 


im getting this error:


Severity Code Description Project File Line Suppression State

Error CS1503 Argument 1: cannot convert from 'string' to 'double' SacmaFuelWeb C:\Users\Asus\source\repos\ApiSacmaApp\SacmaFuelWeb\Components\Levelfuel\LevelFuelComponent.razor 83 Active



Attachment: Sin_tulo_813a46b9.zip

1 Reply

AP AngelinFaithSheeba PaulvannanRajadurai Syncfusion Team March 21, 2022 12:09 PM UTC

Hi Raul,


"Value1" property in "PivotViewConditionalFormatSetting" tag takes number (i.e., double) type alone. Kindly refer to the following code example.

Code example:

<SfPivotView TValue="ProductDetails" AllowConditionalFormatting="true">

   <PivotViewDataSourceSettings DataSource="@pivotData">

             <PivotViewConditionalFormatSettings>

            <PivotViewConditionalFormatSetting Measure="In_Stock" Conditions="Condition.LessThan" Value1=350>

                <PivotViewStyle BackgroundColor="#219122" Color="white" FontFamily="Tahoma" FontSize="12px">

                </PivotViewStyle>

            </PivotViewConditionalFormatSetting>

              </PivotViewConditionalFormatSettings>

    </PivotViewDataSourceSettings>

</SfPivotView>


Meanwhile, we have prepared a sample with .Net 6 for your reference. Please find it from below link.

Sample:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/PivotTesting1116433213


Also, please refer the document link for more information about “PivotViewConditionalFormatSetting.

Document: Conditional Formatting in Blazor Pivot Table Component | Syncfusion


Please let us know if you have any concerns.


Regards,

Angelin Faith Sheeba.


Loader.
Up arrow icon