Hi Manoj,
Thanks for contacting Syncfusion support.
Yes, you can change the control values dynamically (“eg: 2nd DateTimePicker to be dependent on the selection made in the 1st DateTimePicker”) using client side events of the controls.
Once you have rendered the components using HTML helper in view page, no need to intialize it again in the script section. You can change the values dynamically by creating instance for the controls. Please refer the below code example.
<script>
function onChangeDateTimeFrom(args) {
obj = $('#dishDatetimeTo').ejDateTimePicker('instance'); // Object Creation
obj.option("enabled", true);
obj.option("dateTimeFormat",args.model.dateTimeFormat);
obj.option("minDateTime", args.value);
}
</script> |
Kindly get back to us if you need further assistance.
Regards,
Francis Paul A