Click here to Skip to main content
15,886,110 members
Articles / Web Development / ASP.NET

MVC Schedule controls

Rate me:
Please Sign up or sign in to vote.
4.83/5 (16 votes)
8 Sep 2013LGPL310 min read 62.9K   3.6K   85  
MVC Schedule controls
@model MvcSchedule.Objects.MvcScheduleGeneralOptions

    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Properties</legend>
        @Html.CheckBoxFor(vm => vm.SeparateDateHeader) Header column for date
        <br />
        @Html.RadioButtonFor(vm => vm.Layout, "Horizontal") Horizontal
        @Html.RadioButtonFor(vm => vm.Layout, "Vertical") Vertical
        <br />
        @Html.CheckBoxFor(vm => vm.FullTimeScale) Full time scale
        <br />
        Time scale interval:
        @Html.TextBoxFor(vm => vm.TimeScaleInterval, new
            {
                value = "30",
                style = "width:53px",
                title = "Time scale interval in minutes. Only used when the Full time scale option is set"
            })
        &nbsp;minutes
        <br />
        <span style="width: 120px">Start of time scale:</span>
        @Html.TextBoxFor(vm => vm.StartOfTimeScale, new { style = "width:53px" })
        @Html.ValidationMessageFor(model => model.StartOfTimeScale)
        <br />
        <span style="width: 120px">End of time scale:</span>
        @Html.TextBoxFor(vm => vm.EndOfTimeScale, new { style = "width:53px" })
        @Html.ValidationMessageFor(model => model.EndOfTimeScale)
        <br />
        @Html.CheckBoxFor(vm => vm.IncludeEndValue, new 
            { title = "Include the end value when showing an item" }) Include end time
        <br />
        @Html.CheckBoxFor(vm => vm.ShowValueMarks) Show value marks
        @Html.HiddenFor(vm => vm.ItemCss)
        @Html.HiddenFor(vm => vm.RangeHeaderCss)
        @Html.HiddenFor(vm => vm.TitleCss)
        @Html.HiddenFor(vm => vm.BackgroundCss)
        <br />
        <input type="submit" value="Apply settings" />
    </fieldset>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Web Developer
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions