Why existing combobox control is not load data in different controller?

3 posts, 1 answers
  1. Suman
    Suman avatar
    11 posts
    Member since:
    Mar 2017

    Posted 17 Jul Link to this post

    Assume I have created Testcontroller and added a Testcombobox control in views(Eg. TestView.cshtml). I implements the function and return data is working fine. Now I added existing Testcombobox control in different Controller (eg. Test1View1.cshtml and Test1Controller) is not loading data and it getting error like uncaught TypeError: Cannot read property 'slice' of undefined.


    Eg ComboControl.

     @(Html.Kendo().ComboBoxFor(m => m)
            .DataSource(source => source
                                .ServerFiltering(false).Transport(transport => transport

                                .Read(read =>
                                    read.Action("TestAction", "Test");
                                .Schema(schema => schema.Data("Data")


    Is there anything missing code or reference?

    Note: Using Area Controller and the same control added another area controller.

  2. Answer
    Dimitar avatar
    225 posts

    Posted 18 Jul Link to this post

    Hello Suman,

    When using [WidgetName]For method to initialize a widget, the name of the widget is set automatically, therefore I would suggest removing the Name method from the declaration of the widget. 

    In the current case, when loading partial views, you also need to make sure that all of the rendered widgets have unique name, otherwise only the widget instance which occurs first in the HTML markup will initialize. 

    You can find more information regarding the above issues in the following article:

    I hope this helps you to resolve the issue.

    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.
  3. Suman
    Suman avatar
    11 posts
    Member since:
    Mar 2017

    Posted 21 Jul Link to this post

    Thanks for the solution and document.
Back to Top