C1InputDate and ScriptManager

Originally Posted 12 September 2013, 4:30 am EST

  • Originally Posted 12 September 2013, 4:30 am EST

    Goodmorning,
    I'm trying to use the C1InputDate in an existing page but I receive the following error while running:
    "Assembly 'C1.Web.Wijmo.Controls.4, Version=4.0.20123.87, Culture=neutral, PublicKeyToken=9b75583953471eea' does not contain a Web resource with name 'C1.Web.Wijmo.Controls.Resources.wijmo.extensions.c1inputdate.js'."
    I found out that the problem is caused by a ScriptManager that is in the page. When I remove the ScriptManager the page works ok. However, for a partial update in another part of the page I need the ScriptManager.

    Is it possible to have the C1InputDate and a ScriptManager in 1 page and what do I have to do to prevent the above error?

    Regards,
    Martin
  • Reply

    Hello Martin,

    This was a known issue and was been fixed later on. You may try the same with the latest version which is available at this link;
    http://prerelease.componentone.com/dotnet30/C1WebWijmo.Webforms/2013-T2/

    Regards
  • Reply

    Hi Ashish,

    Thanks for your reply. With 2013-T2 the issue with the C1InputDate is indeed solved.

    However, now I see another strange behaviour caused in combination with the Scriptmanager.
    I use the form decorator in a page (script), a Scriptmanager and a C1Dialog. The C1Dialog is opened through code behind (because some session vars has to be filled) and displays another page. So far so good, but the texts and checkboxes change to normal after displaying the C1Dialog. So the elements are no longer decorated and the layout is changed.
    When I remove the asp:UpdatePanel and ContentTemplate it works ok.

    Regards,
    Martin
  • Reply

    Hello Martin,

    I tried placing the controls along with C1Dialog but was unable to replicate the issue. Could you kindly post a small sample replicating the issue so that I can check and can assist you accordingly ?

    Regards
  • Reply

    Hi Ashish,

    See the attached example. Start form1 and click the button to show the dialog. At that moment the layout of form1 is changed.

    Regards,
    Martin

    2013/09/Example.zip
  • Reply

    Hello Martin,

    This happens because when you click on the button, the page is postback and dialog is displayed. But, on closing of dialog, there is no postback instead a callback is called. To resolve it, you need to reinitialise the wijmo widgets in the Close event of dialog. Here is the code which you can use:


    $("#C1DialogPreview").c1dialog({
    close: function (e) {
    initiateWidgets();
    }
    });

    function initiateWidgets() {
    $(":input[type='text'],:input[type='password'],textarea").wijtextbox();
    $(":input[type='radio']").wijradio();
    $(":input[type='checkbox']").wijcheckbox();
    }


    Regards
Need extra support?

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

Learn More

Forum Channels