具有多个日期选择的日期选择器

时间:2016-08-30 07:16:17

标签: xml calendar nativescript telerik-appbuilder nativescript-telerik-ui

我正在使用Nativescript应用程序,我需要从日期到目前为止(日期范围)。我试图实现RadCalendar,但我找不到多个日期选择或日期范围选择的方法或属性。

以下是我的 XML 代码,用于压缩视图

<Page xmlns="http://www.nativescript.org/tns.xsd" 
  xmlns:calendar="nativescript-telerik-ui-pro/calendar"
  showingModally="onLoaded">
    <StackLayout id="calendarModal" width="90%" height="65%" horizontalAlignment="center" verticalAlignment="center" backgroundColor="white" opacity="1">
        <StackLayout class="popup-wrapper">
            <calendar:RadCalendar id="calendar" dateSelected="onDateSelected" />
        </StackLayout>
    </StackLayout>
</Page>

感谢。

1 个答案:

答案 0 :(得分:1)

我使用了selectionMode属性。 Reference

其他可用选项

  1. 多个
  2. 范围
  3. <强> XML

    <calendar:RadCalendar id="calendar" dateSelected="onDateSelected" selectionMode="Range" />
    
相关问题