SelectionMode C1Calendar to SelectionSettings 2025v2 399

Posted by: enrique.pv-ext on 18 June 2026, 10:02 am EST

    • Post Options:
    • Link

    Posted 18 June 2026, 10:02 am EST

    Hi,

    Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.

    Using C1Calendar from C1.Web.Wijmo.Controls.48.dll

    Changes C1Calendar from 2010v1 to 2025v2 399 control.

    Now those properties changes:

    C1Calendar.SelectionMode = C1.Web.UI.Controls.C1Calendar.SelectionMode.Day;

    How-to use C1.Web.Wijmo.Controls.C1Calendar.SelectionSettings.Day now ?

     //Initialice date with current mounth
     C1Calendar.SelectionMode = //C1.Web.Wijmo.Controls.C1Calendar.SelectionSettings.Day; //= C1.Web.UI.Controls.C1Calendar.SelectionMode.Day;
     C1Calendar.SelectedDate = new DateTime(int.Parse(desde.Substring(0, 4)), int.Parse(desde.Substring(5, 2)), int.Parse("01"));

    any suggestion please ?

  • Posted 19 June 2026, 1:02 am EST

    Hi,

    In the latest versions of C1Calendar, the SelectionMode property provides separate Boolean properties to enable or disable the supported selection modes. You can configure them as follows:

    'these are enabled by default
    C1Calendar1.SelectionMode.Day = True
    C1Calendar1.SelectionMode.Days = True
    
    'these are disabled by default
    C1Calendar1.SelectionMode.WeekNumber = True
    C1Calendar1.SelectionMode.WeekDay = True
    C1Calendar1.SelectionMode.Month = True

    You can set these properties according to your requirements to enable or disable the corresponding selection modes.

    Best Regards,

    Kartik

  • Posted 19 June 2026, 5:07 am EST

    Whats means leagacy C1Calendar.SelectionMode = SelectionMode.Day;

    for new version ?

    the same

    C1Calendar1.SelectionMode.Day = True
    C1Calendar1.SelectionMode.Days = False
  • Posted 19 June 2026, 5:54 am EST

    Hi,

    Yes, your understanding is correct.

    Regards.

  • Posted 24 June 2026, 10:26 am EST - Updated 24 June 2026, 10:44 am EST

    In aspx-ascx Markup:

      SelectionMode="Day" 

    latests version:

    SelectionMode-Day="true"
          SelectionMode-Days="false"

    sample:

      <cc1:C1Calendar ID="C1SurveyDateFrom" runat="server" style="font-size: xx-small" 
          Height="180px" Width="230px"
          PopupMode="True"
          WeekDayFormat="Abbreviated"                             
          AllowPreview="false"
          ShowWeekNumbers="false"
          EnableViewState="true"
          SelectionMode-Day="true"
          SelectionMode-Days="false"
          TitleFormat="MMMM 'de' yyyy" 
          MonthViewTitleFormat="MMMM 'de' yyyy">
      </cc1:C1Calendar>

    these are disabled by default, then is FALSE:

    C# sample:

    C1Calendar1.SelectionMode.WeekNumber = false;
    C1Calendar1.SelectionMode.WeekDay = false;
    C1Calendar1.SelectionMode.Month = false;

    and

    SelectionMode can be applied using javascript wijmo c1calendar ?

    thanks a lot

  • Posted 25 June 2026, 12:24 am EST

    Hello Enrique,

    Regarding the default values for SelectionMode, we have already discussed it on the following thread:

    https://developer.mescius.com/forums/webforms-edition/allowquickpick-and-selectionmode-properties-for-c1calendar-2025v2-399#86206

    Regarding setting SelectionMode using JS, please refer to the following option in c1calendar:

    https://help.grapecity.com/wijmo/3/Wijmo~wijmo.calendar.wijcalendar.options~selectionMode.html

    To explore other similar options, please refer to https://help.grapecity.com/wijmo/3/webframe.html#Wijmo~wijmo.calendar.wijcalendar.options.html

    Sample code to set “selectionMode” option using jQuery:

    function selectionMode() {
        var cal = $("#<%=C1Calendar1.ClientID%>");
        
        var selectionModeVal = cal.c1calendar('option', 'selectionMode');
        cal.c1calendar('option', 'selectionMode', {
            day: false,
            days: true,
            month: true
        });
    }

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels