This is a migrated thread and some comments may be shown as answers.

Error in latest version 2017 Q2

3 Answers 204 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 13 Jun 2017, 04:06 PM

 

 

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>

 

3 Answers, 1 is accepted

Sort by
0
Marc
Top achievements
Rank 1
answered on 13 Jun 2017, 04:09 PM
Nevermind this is an error rendering a dialog control. I can post it there.
0
Marc
Top achievements
Rank 1
answered on 13 Jun 2017, 04:18 PM

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())
    )

0
Dimitar
Telerik team
answered on 15 Jun 2017, 11:58 AM
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.
Tags
DropDownList
Asked by
Marc
Top achievements
Rank 1
Answers by
Marc
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or