Error in latest version 2017 Q2

4 posts, 0 answers
  1. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 13 Jun 2017 Link to this post

     

     

    0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'syncReady'

    ddiv data-role="dialog" id="dialog"></div><script>
    kendo.syncReady(function(){jQuery("#dialog").kendoDialog({"actions":[{"text":"Cancel"},{"text":"Refresh now","action":onOkRefresh,"primary":true}],"modal":false,"title":"Refresh Data","visible":false,"width":400,"content":"\u003cp\u003eUpdate all data from IFS, Agile and Velocity?\u003cbr/\u003e\u003cbr/\u003e Refresh may take a few minutes...\u003cp\u003e"});});
    </scr

     

    My code: 

            <div class="form-group-sm" style="float: left; padding-right: 5px; width: 600px;">
                @(Html.Kendo().DropDownListFor(model => model.ConfigurationId)
                      .Events(ev =>
                      {
                          ev.Change("setConfigurationId");
                      })
                      .DataTextField("Text")
                      .DataValueField("Value")
                      .BindTo(Model.Configurations)
                      .OptionLabel("-IFS Project Demands-")
                      .HtmlAttributes(new { style = "width: 100%; font-size: 12px;" })
                )
            </div>

            <div class="form-group-sm" style="float: left; padding-right: 5px; width: 400px;">
                @(Html.Kendo().DropDownListFor(model => model.PartId)
                      .Events(ev =>
                      {
                          ev.Change("setConfigurationId");
                      })
                      .DataTextField("name")
                      .DataValueField("value")
                      .OptionLabel("-Kitted Assemblies-")
                      .DataSource(source => source.Read(read => read.Action("GetKittedAssemblies", "ExecutionReport").Data("filterKittedAssemblies")).ServerFiltering(true))
                      .Enable(false)
                      .AutoBind(false)
                      .HtmlAttributes(new { style = "width: 100%; font-size: 12px;" })
                      .CascadeFrom("ConfigurationId")
                      )
                <script>
                                     function filterKittedAssemblies() {
                                                return {
                                                    configurationId: $("#ConfigurationId").val()
                                                };
                                            }
                </script>
            </div>

     

  2. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 13 Jun 2017 Link to this post

    Nevermind this is an error rendering a dialog control. I can post it there.
  3. Marc
    Marc avatar
    128 posts
    Member since:
    Jul 2010

    Posted 13 Jun 2017 in reply to Marc Link to this post

    Well you don't have a dialog forum.

    I'm getting this error trying to render this widget..

        @(Html.Kendo()
          .Window()
          .Name("partInfoWindow")
          .Title("Part Info")
          .LoadContentFrom("_PartInfo", "ExecutionReport")
          .Draggable()
          .Width(1400)
          .Height(800)
          .Visible(false)
          .Resizable()
          .Animation(true)
          .Events(ev => ev.Close("partInfoWindowOnClose"))
          .Actions(actions => actions.Minimize().Maximize().Close())
        )

  4. Dimitar
    Admin
    Dimitar avatar
    683 posts

    Posted 15 Jun 2017 Link to this post

    Hello Marc,

    The kendo.syncReady was introduced in the Kendo UI R1 Release (2017.1.223). This method was added in the kendo.aspnetmvc.js file because of a major problem with jQuery 3.1 and the way that templates are generated in MVC. 

    With this in mind, please ensure that the kendo.aspnetmvc.js file is updated to the latest version. This should resolve the issue with the missing function.

    In addition to the above, I am attaching an MVC project which uses the latest version (2017.2.504) and implements a Kendo UI Window with the provided HTML markup. You can use it as a reference to check the needed scripts and styles which are to be loaded.

    I hope this helps.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top