Datepicker rangeStart rangeEnd

Hi,

Form Cuba sampler:

You can specify available dates to select by using rangeStart and rangeEnd attributes. If you set them, all the dates that are outside the range will be disabled.

<window xmlns="http://schemas.haulmont.com/cuba/window.xsd"
        class="com.haulmont.cuba.gui.components.AbstractFrame">
    <layout spacing="true">
        <datePicker id="datePicker" rangeStart="2016-08-15" rangeEnd="2016-08-19"/>
    </layout>
</window>

Why I am alowed to select 2016-08-14?

Hi,

Unfortunately, we can’t reproduce the problem.

image

August 14, 2016 is disabled.

Regards,
Gleb

Hi,

Try here: https://demo.cuba-platform.com/sampler/#!

image

Thanks!

I’ve tried exactly there, and I can’t reproduce. Could you please provide information about your timezone?

UTC+2 Athens, Bucharest

Thank you, I will try to investigate the problem.

Thank you for reporting the problem, I’ve created a GitHub issue.

Regards,
Gleb

1 Like