With other syncfusion controls, when I have to assign them a value, when the view is first loaded I do something like this:
(this is an example with control maskedit)
$('#Surname').ejMaskEdit({
value:'@Model.Person_Surname'
});
-> this approach doesn't work with checkbox:
form.find('#CheckBox').ejCheckBox({
value: '@Model.Interaction_Flag'
});
..and this doesn't work either:
form.find('#CheckBox').ejCheckBox({
checked: '@Model.Interaction_Flag'
});
Also, about recovering a value (for example to prepare the JSON for an ajax call), I usually do something like this:
Person_Surname: $('#Surname').val()
with checkboxes I have tried the following, which doesn't work:
Interaction_Flag: $('#CustomCheck').val()
..and this doesn't work either:
Interaction_Flag: form.find('#CustomCheck').checked()
More generally speaking, what is the general best approach to handle these GET / SET scenarios with syncfusion controls? Thanks