Added a Scheduler Getting Started example
This commit is contained in:
Родитель
03ea305f90
Коммит
011511fe29
|
@ -0,0 +1,82 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|AnyCPU">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>AnyCPU</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|ARM">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x86">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x86</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|AnyCPU">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>AnyCPU</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|ARM">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x86">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x86</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>308ed819-29b5-45b8-989e-9fe68148e731</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '11.0'">
|
||||
<VisualStudioVersion>11.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
|
||||
<PropertyGroup>
|
||||
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>8.0</TargetPlatformVersion>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<PackageCertificateKeyFile>GettingStarted_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<AppxManifest Include="package.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
<Content Include="default.html" />
|
||||
<Content Include="images\logo.png" />
|
||||
<Content Include="images\smalllogo.png" />
|
||||
<Content Include="images\splashscreen.png" />
|
||||
<Content Include="images\storelogo.png" />
|
||||
<Content Include="js\default.js" />
|
||||
<Content Include="css\default.css" />
|
||||
<Content Include="ReadMe.html" />
|
||||
<None Include="GettingStarted_TemporaryKey.pfx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" />
|
||||
<SDKReference Include="Telerik.UI, Version=2013.3.1015" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below then uncomment
|
||||
that target and the DisableFastUpToDateCheck PropertyGroup.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
<PropertyGroup>
|
||||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
|
||||
</PropertyGroup>
|
||||
-->
|
||||
</Project>
|
Двоичный файл не отображается.
|
@ -0,0 +1,3 @@
|
|||
<p>
|
||||
This is an example of a basic RadScheduler configuration and usage. You can click on the "Show Business Hours" button to see the events.
|
||||
</p>
|
|
@ -0,0 +1,58 @@
|
|||
.mainContent {
|
||||
margin: 120px 0 50px 120px;
|
||||
}
|
||||
|
||||
.info {
|
||||
color: #feef7a;
|
||||
margin-left: 120px;
|
||||
}
|
||||
|
||||
#title, #header-wrapper {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.city-container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.city-label {
|
||||
display: block;
|
||||
height: 110px;
|
||||
width: 110px;
|
||||
}
|
||||
|
||||
.city-name {
|
||||
position: absolute;
|
||||
bottom: 7px;
|
||||
left: 5px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.city-checkbox {
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
#berlin {
|
||||
background-image: url('/images/cities/Berlin.jpg');
|
||||
border: 2px solid #FBF192;
|
||||
}
|
||||
|
||||
#paris {
|
||||
background-image: url('/images/cities/Paris.jpg');
|
||||
border: 2px solid #27BAB2;
|
||||
}
|
||||
|
||||
#london {
|
||||
background-image: url('/images/cities/London.jpg');
|
||||
border: 2px solid #0083D4;
|
||||
}
|
||||
|
||||
#manchester {
|
||||
background-image: url('/images/cities/Manchester.jpg');
|
||||
border: 2px solid #FABF09;
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>FilteringRadSchedulerDataSource</title>
|
||||
|
||||
<!-- WinJS references -->
|
||||
<link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
|
||||
<script src="//Microsoft.WinJS.1.0/js/base.js"></script>
|
||||
<script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
|
||||
|
||||
<!-- Telerik references -->
|
||||
<link href="///Telerik.UI/css/common.css" rel="stylesheet" />
|
||||
<link href="///Telerik.UI/css/dark.css" rel="stylesheet" />
|
||||
<script src="///Telerik.UI/js/jquery.js"></script>
|
||||
<script src="///Telerik.UI/js/ui.js"></script>
|
||||
|
||||
<!-- FilteringRadSchedulerDataSource references -->
|
||||
<link href="/css/default.css" rel="stylesheet" />
|
||||
<script src="/js/default.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<section class="mainContent">
|
||||
|
||||
<div id="schedulerWrapper"></div>
|
||||
|
||||
</section>
|
||||
<div class="info" data-win-control="WinJS.UI.HtmlControl" data-win-options="{
|
||||
uri: 'readme.html'
|
||||
}">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 801 B |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 329 B |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 2.1 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 429 B |
|
@ -0,0 +1,79 @@
|
|||
// For an introduction to the Blank template, see the following documentation:
|
||||
// http://go.microsoft.com/fwlink/?LinkId=232509
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
WinJS.Binding.optimizeBindingReferences = true;
|
||||
|
||||
var app = WinJS.Application;
|
||||
var activation = Windows.ApplicationModel.Activation;
|
||||
|
||||
app.onactivated = function (args) {
|
||||
if (args.detail.kind === activation.ActivationKind.launch) {
|
||||
if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
|
||||
// TODO: This application has been newly launched. Initialize
|
||||
// your application here.
|
||||
} else {
|
||||
// TODO: This application has been reactivated from suspension.
|
||||
// Restore application state here.
|
||||
}
|
||||
|
||||
var scheduler = new Telerik.UI.RadScheduler(schedulerWrapper, {
|
||||
height: 500,
|
||||
date: new Date(2013, 8, 16),
|
||||
dataSource: [
|
||||
{
|
||||
start: new Date(2013, 8, 16, 9),
|
||||
end: new Date(2013, 8, 16, 10),
|
||||
title: "Meeting with Marta",
|
||||
roomId: 1
|
||||
},
|
||||
{
|
||||
start: new Date(2013, 8, 16, 10, 30),
|
||||
end: new Date(2013, 8, 16, 11, 30),
|
||||
title: "Meeting with Paul West",
|
||||
roomId: 2
|
||||
},
|
||||
{
|
||||
start: new Date(2013, 8, 16, 13),
|
||||
end: new Date(2013, 8, 16, 14),
|
||||
title: "Meeting with Technical Team",
|
||||
roomId: 2
|
||||
}
|
||||
],
|
||||
resources: [
|
||||
{
|
||||
field: "roomId",
|
||||
title: "Room",
|
||||
name: "Room",
|
||||
dataSource: [
|
||||
{
|
||||
text: "Small meeting room",
|
||||
value: 1,
|
||||
color: "pink"
|
||||
},
|
||||
{
|
||||
text: "Big meeting room",
|
||||
value: 2,
|
||||
color: "purple"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
args.setPromise(WinJS.UI.processAll());
|
||||
}
|
||||
};
|
||||
|
||||
app.oncheckpoint = function (args) {
|
||||
// TODO: This application is about to be suspended. Save any state
|
||||
// that needs to persist across suspensions here. You might use the
|
||||
// WinJS.Application.sessionState object, which is automatically
|
||||
// saved and restored across suspension. If you need to complete an
|
||||
// asynchronous operation before your application is suspended, call
|
||||
// args.setPromise().
|
||||
};
|
||||
|
||||
app.start();
|
||||
})();
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
|
||||
|
||||
<Identity
|
||||
Name="308ed819-29b5-45b8-989e-9fe68148e731"
|
||||
Version="1.0.0.0"
|
||||
Publisher="CN=myankov" />
|
||||
|
||||
<Properties>
|
||||
<DisplayName>GettingStarted</DisplayName>
|
||||
<PublisherDisplayName>myankov</PublisherDisplayName>
|
||||
<Logo>images\storelogo.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Prerequisites>
|
||||
<OSMinVersion>6.2.1</OSMinVersion>
|
||||
<OSMaxVersionTested>6.2.1</OSMaxVersionTested>
|
||||
</Prerequisites>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate" />
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application
|
||||
Id="App"
|
||||
StartPage="default.html">
|
||||
|
||||
<VisualElements
|
||||
DisplayName="GettingStarted"
|
||||
Logo="images\logo.png"
|
||||
SmallLogo="images\smalllogo.png"
|
||||
Description="GettingStarted"
|
||||
ForegroundText="light"
|
||||
BackgroundColor="#464646">
|
||||
|
||||
<DefaultTile ShowName="allLogos" />
|
||||
<SplashScreen Image="images\splashscreen.png" />
|
||||
|
||||
</VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
|
||||
</Package>
|
|
@ -3,6 +3,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||
# Visual Studio 2012
|
||||
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "FilteringRadSchedulerDataSource", "FilteringRadSchedulerDataSource\FilteringRadSchedulerDataSource.jsproj", "{22D43528-7863-4F20-8712-257B8D2245CB}"
|
||||
EndProject
|
||||
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "GettingStarted", "GettingStarted\GettingStarted.jsproj", "{308ED819-29B5-45B8-989E-9FE68148E731}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -39,6 +41,30 @@ Global
|
|||
{22D43528-7863-4F20-8712-257B8D2245CB}.Release|x86.ActiveCfg = Release|x86
|
||||
{22D43528-7863-4F20-8712-257B8D2245CB}.Release|x86.Build.0 = Release|x86
|
||||
{22D43528-7863-4F20-8712-257B8D2245CB}.Release|x86.Deploy.0 = Release|x86
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|x64.Build.0 = Debug|x64
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|x64.Deploy.0 = Debug|x64
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|x86.Build.0 = Debug|x86
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|ARM.Build.0 = Release|ARM
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|ARM.Deploy.0 = Release|ARM
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|x64.ActiveCfg = Release|x64
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|x64.Build.0 = Release|x64
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|x64.Deploy.0 = Release|x64
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|x86.ActiveCfg = Release|x86
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|x86.Build.0 = Release|x86
|
||||
{308ED819-29B5-45B8-989E-9FE68148E731}.Release|x86.Deploy.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
Загрузка…
Ссылка в новой задаче