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.
Unfortunately, activation email could not send to your email. Please try again.

Unchecked state not send to server

Thread ID:





130243 May 2,2017 01:31 AM May 3,2017 08:58 AM JavaScript 1
Tags: ejCheckBox
Oka Sugandi
Asked On May 2, 2017 01:31 AM

Dear support,
I have a problem,
In my ejcheckbox, when the state is checked, the value is sent to server, but when the state is unchecked, not only the value, but the property itself is not exist in the form data posted to server. The server need the property and value (false) in order to process the request.. Am I doing something wrong?

Thank you.

sureshkumar.P [Syncfusion]
Replied On May 3, 2017 08:58 AM

Hi Sugandi, 
Thanks for contacting Syncfusion support, 
We have analyzed your query (The server need the property and value (false) while post the form) and this is the natural behavior of checkboxes in HTML. If checked, then its value will be sent as parameter. If unchecked, then its value will not be sent as parameter in JavaScript. This behavior is used to distinguish checked state from unchecked state checkboxes in server side. 
To know more about this please refer the stack overflow link: http://stackoverflow.com/questions/3746678/force-a-checkbox-to-always-submit-even-when-unchecked  
Sureshkumar P 


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.

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.