Hi Divine,
Thank you for contacting Syncfusion support.
Regarding Query: it's possible to be able to programmatically select dates based on DateTime objects that are in a List?
Yes, it is possible to select the dates programmatically by using the selectedRange property of the DateRangePickerController. We have UG document for the same. Please find the UG from the following link.
Please find the code snippet for the same.
final DateRangePickerController _controller = DateRangePickerController();
@override void initState() {
_controller.selectedRange=PickerDateRange(DateTime(2021, 04, 12), DateTime(2021, 04, 15));
super.initState();
}body: Card(
margin: const EdgeInsets.fromLTRB(50, 150, 50, 110),
child: SfDateRangePicker(
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.range,
controller: _controller,
),
),
|
Screenshot:
We hope that this helps you. Please let us know if you need further assistance.
Regards,
Indumathi R