value in checkBox

<EjsCheckBox   EnableRtl="true" LabelPosition="Syncfusion.EJ2.Blazor.Buttons.LabelPosition.After" 
                                 Label="@PrimaryVal.OrderID.ToString()" Value="@PrimaryVal.OrderID.ToString()" ></EjsCheckBox>


how to get value from Chekbox in checkBoxEvent?
for Example:
in ValueChang or other Events.

1 Reply

AD Arunkumar Devendiran Syncfusion Team February 7, 2020 02:24 PM UTC

Hi ebi torabi, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported query and it is achieved that by using ValuChange event. Please refer the below code snippet and sample link. 
 
Index.Razor 
 
<EjsCheckBox EnableRtl="true" LabelPosition="Syncfusion.EJ2.Blazor.Buttons.LabelPosition.After" 
                 Label="@OrderID.ToString()" Value="@OrderID.ToString()" ValueChange="@(e => OnValueChange(OrderID.ToString()))" ></EjsCheckBox> 
@code{ 
 
    private int OrderID = 10; 
    private void OnValueChange(string OrderId) 
    { 
        // you can get orederId value here. 
    } 
} 
 
 
Sample link: 
 
Regards, 
Arunkumar D 


Loader.
Up arrow icon