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

Too much recursion error dropdownlist MVVM

2 Answers 39 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Wayne Hiller asked on 29 Apr 2015, 06:52 PM

I updated my site to the latest Kendo Release 2015.1.429 from the previous update and now I am getting a "Too much recursion error" when data binding.

<script type="text/x-kendo-template" id="filtering-template">
    <div>
        <h3 data-bind="text: data.filter.Name"></h3>
        <table class="edit-panel">
            <colgroup>
                <col class="fields-col">
                <col class="operator-col">
                <col class="value-col">
                <col class="required-col">
                <col class="delete-col">
            </colgroup>
            <tbody data-template="filtering-row-template" data-bind="source: data.filter.Rows"></tbody>
        </table>
        <div id="filter-commands">
            <a id="filter-search" data-role="button" data-bind="click: search" data-sprite-css-class="k-icon custom-icon search-icon">Search</a>
            <a id="filter-clear" data-role="button" data-bind="click: clear" data-sprite-css-class="k-icon custom-icon clear-icon">Clear</a>
            <a id="filter-add-row" data-role="button" data-bind="click: addRow" data-sprite-css-class="k-icon custom-icon add-icon">Add</a>
            <a id="filter-save" data-role="button" data-bind="click: saveFilter" data-sprite-css-class="k-icon custom-icon save-icon">Save</a>
            <a id="filter-saveas" data-role="button" data-bind="click: saveAsFilter" data-sprite-css-class="k-icon custom-icon saveas-icon">Save As</a>
            <a id="filter-delete" data-role="button" data-bind="click: deleteFilter" data-sprite-css-class="k-icon custom-icon delete-icon">Delete</a>
        </div>
        <div id="filter-status" class="k-block">Hello</div>
    </div>
</script>


<script type="text/x-kendo-template" id="filtering-row-template">
    <tr>
        <td><input class="field" data-role="dropdownlist" data-text-field="Name" data-value-field="ID"
               data-bind="source: fields, value: Field, events: {change: fieldChanged}" /></td>
        <td><input class="operator" data-role="dropdownlist" data-text-field="Text" data-value-field="Value"
               data-bind="source: operators, value: Operator" data-value-primitive="true" /></td>
        <td><input class="value k-textbox" data-bind="value: Value" data-abs="true" /></td>
        <td>
            <input type="checkbox" data-bind="checked: Required" /> Req
        </td>
        <td>
            <a class="remove k-button k-button-icon" data-bind="events: {click: removeRow}"><span class="k-icon k-i-close">Delete</span></a>
        </td>
    </tr>
</script>

if I comment out the dropdownlist's in the "filtering-row-template" template the error stops.

 

2 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 01 May 2015, 01:18 PM
Hi Wayne,

This is a known issue that we already addressed, so it should be included in the next internal build.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
answered on 01 May 2015, 01:26 PM

Yes I downloaded the latest build and she is working perfectly again :)

Thank You!

Tags
DropDownList
Asked by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Answers by
Alexander Popov
Telerik team
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Share this question
or