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

pushUpdate fails for Grid DataSource

3 Answers 278 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Iron
Steve asked on 24 Oct 2019, 05:18 PM

Hi,

Im using a grid to display near real-time data from c#/ASP.Net server side via SignalR - adding/updating data rows with pushUpdate().

I already have one grid working in this manner but I haven't been able to work out why updates to a new grid are failing with the error:

TypeError: target.accept is not a function
    at init.pushUpdate (kendo.all.js:6765)

In the following line (kendo.all.js:6762) - I noticed that model.id was undefined:

var target = this.get(model.id);

I have replicated this on dojo. It appears the grid/datasource doesn't handle the initial data, then does reflect the first update, but not the second.

 

On my machine, I'm using the following:

Kendo UI for jQuery R3 2019

Windows 10

Firefox 69.0.3
Chrome 77.0.3865.120

jQuery 3.3.1

3 Answers, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 2
Iron
answered on 25 Oct 2019, 03:56 PM
Apologies, it was just a typo - "datasource" instead of "dataSource" - cant believe I didnt spot that.
0
Accepted
Tsvetomir
Telerik team
answered on 28 Oct 2019, 10:14 AM

Hi Steve,

I have investigated the provided code snippets and it appears that everything else is configured accordingly. It is worth mentioning that when the casing or syntax of the grid's declaration is not correct, the grid would simply ignore it. And its contents would not be taken into consideration. That is why the model.id would return undefined.

In case there is something else that I can help with, feel free to contact me.

 

Best regards,
Tsvetomir
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Steve
Top achievements
Rank 2
Iron
answered on 29 Oct 2019, 10:04 AM
Thanks Tsvetomir.
Tags
Data Source
Asked by
Steve
Top achievements
Rank 2
Iron
Answers by
Steve
Top achievements
Rank 2
Iron
Tsvetomir
Telerik team
Share this question
or