Calendar Control In EPiServer

Vote:
 

Do we have a Calendar Control in EPiServer, if so how would the default view look like ?

if you know any info about this, please share.

#149221
May 26, 2016 13:34
Vote:
 

Hi,

If you set the type of property to DateTime, the default bechaviour is that combobox with calendar will be used as an editor.

public class ProductPage : StandardPage
{
    public virtual DateTime TestDate { get; set; }
}

If you need calendar without combobox, means that the calendar will be always visible, you need to annotate property with ClientEditor attribute:

public class ProductPage : StandardPage
{
    [ClientEditor(ClientEditingClass = "dijit/Calendar")]
    public virtual DateTime TestDate { get; set; }
}
#149375
May 31, 2016 7:40
Vote:
 

There is a calendar web control from the old WebForms days, but I would not recommend that you use it.

It's much better that you build your own views for these kind of functions and not rely on built in rendering from Episerver.

You'll be able to customize your views better if you build them yourself.

#149378
May 31, 2016 8:49
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.