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

Lost reference to data source ListView

1 Answer 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 2
Ron asked on 27 Jan 2014, 11:30 PM
I have an existing Html.Kendo().ListView  and TabStrip  contained on a web page. 

Loading content dynamically into the tabstrip causes the datasource held for the listview to lose reference (e.g.  Uncaught TypeError: Cannot read property 'dataSource' of undefined)
 
        $.ajax({
            type: 'GET',
            url: url,
            async: false,
            data: { id: itemId },
            success: function (data) {
               $('#tabstrip-1').html(data);
            }
        });
(It would seem that since the tabstrip content contains a reference to the JQuery library is causes the reset)

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 29 Jan 2014, 03:30 PM
Hello Ron,

This will occur if you are loading jQuery again with the content returned from the server. Verify that you are loading a partial view without jQuery or the Kendo scripts included.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Ron
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or