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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

value in checkBox

Thread ID:

Created:

Updated:

Platform:

Replies:

151300 Feb 6,2020 07:58 AM UTC Feb 7,2020 02:24 PM UTC Blazor 1
loading
Tags: Checkbox
ebi torabi
Asked On February 6, 2020 07:58 AM UTC

<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.

Arunkumar Devendiran [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon