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

DataSource: data: ObservableArray([])

2 Answers 393 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 24 Apr 2012, 11:05 PM
Previously I had been configuring my DataSource with an ObservableArray initialized with an empty array, like:

dsData = new kendo.data.ObservableArray([]);
ds = new kendo.data.DataSource({

    data: dsData
});

With the newest nightly builds, this results in a "ghost" item in the DataSource with all undefined values.

Just passing the DataSource an empty array fixes the problem but is what I was doing wrong and is it effectively the same as what I'm now doing?

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 25 Apr 2012, 08:38 AM
Hello Gary,

Indeed, you are correct about this issue and we have managed addressed it. I have updated your telerik points.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
De
Top achievements
Rank 1
answered on 25 Apr 2012, 05:56 PM
hello frnds im new to this forum

Tags
Data Source
Asked by
Gary
Top achievements
Rank 1
Answers by
Rosen
Telerik team
De
Top achievements
Rank 1
Share this question
or