SCRIPT28: Out of stack space

3 posts, 0 answers
  1. Jon
    Jon avatar
    2 posts
    Member since:
    Jun 2013

    Posted 18 Jun 2013 Link to this post

    I am currently evaluating these controls for use with our Hot
    Towel/SPA-based application. I am attempting to display a drop down list
    with data from our backend. I've attempted to do this with ComboxBox
    and DropDownList, and both controls give me a "SCRIPT28: Out of stack
    space" error.

    I saw one post that said this was due to an older
    version of jquery, but I'm using 1.9.1. The data is returned as a JSON
    array. I set up the control in the viewAttached function:

    function viewAttached(view) {
            autoBind: false,
            dataTextField: 'WHNAME',
            dataValueField: 'HOUSEO'
    Then in the same function, I retrieve the data:
    aplusAdapter.getWarehouses(0, false, function (warehouseData) {
        //var ds = new{ data: warehouseData });
        var ddList = $('#warehouseId').data('kendoDropDownList');
    warehouseData comes back from the controller, and contains valid data, including the WHNAME and HOUSEO fields. The dropdown list control appears to be empty. When I click on it, I get the spinning progress indicator, and the SCRIPT28 error appears. In Firefox, I get a "too much recursion" error.

    What am I missing?
  2. Jon
    Jon avatar
    2 posts
    Member since:
    Jun 2013

    Posted 19 Jun 2013 Link to this post

    I note that if I copy the data into a temporary array with just a couple of fields, the control works correctly. Is the issue that my entity has too many fields? What is the limit?

    Adding this makes it work:

    $.each(warehouseData, function (index, value) {
            "WHNAME": value.WHNAME,
            "HOUSEO": value.HOUSEO

    var ddList = $('#warehouseId').data('kendoDropDownList');
  3. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 20 Jun 2013 Link to this post

    Hello Jon,

    Whats that JSON that is returned from the server, which you initialize new dataSource with, can you share it with us so we can see if we can reproduce the exception?

    Kind Regards,
    Petur Subev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top