Errors in controls that inherit C1InputDate

Posted by: malishin on 6 March 2020, 3:07 am EST

  • Posted 6 March 2020, 3:07 am EST

    Hi Guys,

    I want to create a custom control that inherits from C1InputDate,
    But when I click the submit button, the date in the control disappears,
    I don't know where is wrong with my code

    When the page is initialized,

    after changing the date,

    after clicking the submit button


    InheritC1.zip
  • Replied 8 March 2020, 8:29 pm EST

    Hi,
    We are working on this issue. We will update you soon.

    Regards,
    Manish Gupta
  • Replied 11 March 2020, 2:21 pm EST

    Hi,
    We are extremely sorry for the delay. We are able to replicate the issue at our end and it required further investigation. Hence, this issue has been forwarded to the concerned team for further investigation with internal tracking id 424939.
    We will let you know as we get an update on this.
    Regards,
    Manish Gupta
  • Replied 11 March 2020, 10:31 pm EST

    Hello,
    This is the limitation of our control. The cause of the issue is saving the date for the control.

    To overcome this issue, please add the following line of code where you have written "RegisterStartupScript" as follows:
      this.Page.ClientScript.RegisterStartupScript(this.GetType(), this.ID + "_script", @"<script>$.fn.datepicker = $.fn.c1inputdate</script>");
    this.Page.ClientScript.RegisterOnSubmitStatement(this.GetType(), this.ID, "$('#" + this.ClientID + "').wijSaveState('c1inputdate');");


    This should be done for both the DatePicker and MyCustomWijmo.ascx.

    Hope it helps!

    Regards,
    Manish Gupta
Need extra support?

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

Learn More

Forum Channels