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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Unchecked state not send to server

Thread ID:

Created:

Updated:

Platform:

Replies:

130243 May 2,2017 05:31 AM UTC May 3,2017 12:58 PM UTC JavaScript 1
loading
Tags: ejCheckBox
Oka Sugandi
Asked On May 2, 2017 05:31 AM UTC

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 12:58 PM UTC

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  
 
Regards, 
Sureshkumar P 


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.

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

;