BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Thomas,
Thanks for the update,
1. Can you explain to me how i can do the Data Binding for your CheckBox Control?
We can bind the Boolean type fields of data source to checkbox control. Please refer the below link to know about data binding in light switch
myapp.AddEditpassengerItem.Seniorcitizen_render = function (element, contentItem) { // Write code here. var itemTemplate = $("<input type='checkbox'id='check' data-role='none'/>"); itemTemplate.appendTo($(element)); itemTemplate.ejCheckBox({ enableTriState:true, change: function (args) { contentItem.value = args.isChecked; } }); contentItem.dataBind('value', function (value) { itemTemplate.ejCheckBox({ checked: value }); }); |
2. And how can i configure the CheckBox Control as a Three State CheckBox?
We can enable tri state in checkbox control using enableTriState property. In this state, we can get the checked state of the checkbox using “checkState” property.
Please refer the below code snippet to enable the tri state in check box.
myapp.AddEditpassengerItem.Seniorcitizen_render = function (element, contentItem) { // Write code here. var itemTemplate = $("<input type='checkbox'id='check' data-role='none'/>"); itemTemplate.appendTo($(element)); itemTemplate.ejCheckBox({ enableTriState:true, change: function (args) { contentItem.value = args.isChecked; } }); |
Also, we have logged an issue in change event’s isChecked argument (isChecked return true for intermediate state also instead of returns the null) in our database. A new support incident (142433) to track the status of this issue has been created under your account. Please follow incident for further queries related to this issue.
Please let us know if you have further queries,
Regards,
Sasikala Nagarajan