We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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. 
<EjsCheckBox EnableRtl="true" LabelPosition="Syncfusion.EJ2.Blazor.Buttons.LabelPosition.After" 
                 Label="@OrderID.ToString()" Value="@OrderID.ToString()" ValueChange="@(e => OnValueChange(OrderID.ToString()))" ></EjsCheckBox> 
    private int OrderID = 10; 
    private void OnValueChange(string OrderId) 
        // you can get orederId value here. 
Sample link: 
Arunkumar D 

Live Chat Icon For mobile
Up arrow icon