Set_visible legacy for new C1InputDate 2025v2 399

Posted by: enrique.pv-ext on 3 June 2026, 9:53 am EST

    • Post Options:
    • Link

    Posted 3 June 2026, 9:53 am EST - Updated 4 June 2026, 2:36 am EST

    Hi,

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

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

    Changes C1DateInput to C1InputDate control.

         cts.ShiftBeginDateText.set_visible(manuallyAdded);
         cts.lblReadOnlyPendingShiftDate.style.display = manuallyAdded ? 'none' : '';
         cts.lblReadOnlyPendingShiftDate.value = '';
    
         cts.ShiftEndDateText.set_visible(manuallyAdded);
         cts.lblReadOnlyPendingShiftDateEnd.style.display = manuallyAdded ? 'none' : '';
         cts.lblReadOnlyPendingShiftDateEnd.value = '';
    
     cts.ShiftEndDateText.set_date(values.ShiftEndDate);
     cts.lblReadOnlyPendingShiftDateEnd.innerHTML = cts.ShiftEndDateText.get_text();
    
    cts.ShiftNumber.set_text(values.ShiftNumber);

    set_visible legacy ? alternative ?

    get_visible

       if (cts.ClosePendingShiftEndDateText.get_visible()) {
           var beginValue = cts.ShiftBeginDateText.get_date();
           var value = cts.ClosePendingShiftEndDateText.get_date();
           return value > beginValue;
       }

    get_text, set_text

                    cts.ShiftBeginDateText.set_date(values.ShiftBeginDate);
                    cts.lblReadOnlyPendingShiftDate.innerHTML = cts.ShiftBeginDateText.get_text();

    $find, $get…

       cts.CancelledPagesNumeration = $find(args.CancelledPagesNumeration);
       cts.AcceptButton = $get(args.AcceptButton);
  • Posted 4 June 2026, 12:23 pm EST

    Hello Enrique,

    We’re looking into your query and will get back with more updates soon.

    Regards,

    Uttkarsh.

  • Posted 5 June 2026, 1:24 am EST

    Hello Enrique,

    1. We checked the documentation but did not find any alternative for set/get visible.

    2. Instead of text, please use date property. You’ll get a date object which you can cast to string using JS toString() method.

    3. We’re sorry but we’re not sure what $find() and $get are used for.

    For 1 and 3, could you please share more information on your use case so that we can suggest best alternative with new version?

    Regards,

    Uttkarsh.

  • Posted 5 June 2026, 2:25 am EST - Updated 5 June 2026, 2:28 am EST

    old version C1DateInput control using set_visible and get_visible

    ShiftBeginDateText.set_visible(manuallyAdded);
    ShiftBeginDateText.get_visible()

    I want now use C1InputDate.

    $find, $get…

    In the 2025v2 (Build 399) version of the C1.Web.Wijmo.Controls.48 library,

    the client-side object model has moved away from the legacy Microsoft AJAX $find patterns.

    These controls are now implemented as jQuery UI widgets.

    API old		API new					        Used
    $find(id)	$("#" + id)						Controles C1 (jQuery widgets)
    $get(id)		document.getElementById(id)	Controles ASP.NET / elementos DOM simples
  • Posted 5 June 2026, 6:56 am EST

    Hello Enrique,

    It seems you found alternative for $find and $get. Thanks for sharing here as well.

    After inspecting the rendered HTML of the C1InputDate control, we found that it renders with a wrapper div of class ‘wijmo-wijinput’. There is no built-in API equivalent for ‘set_visible’/‘get_visible’ in 2025v2, but you can achieve the same behavior using jQuery targeting that wrapper:

    // set_visible(true)
    $("#" + id).closest(".wijmo-wijinput").show();
    
    // set_visible(false)
    $("#" + id).closest(".wijmo-wijinput").hide();
    
    // get_visible()
    $("#" + id).closest(".wijmo-wijinput").is(":visible");

    The reason we target the wrapper rather than the input itself is that the control renders additional elements (the trigger button, span wrapper, etc.), so hiding just the input would leave the widget chrome visible.

    Sample: InputDate_Sample.zip

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels