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

Bug in kendoGrid when using datasource.data(variable)

2 Answers 185 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bridge24
Top achievements
Rank 1
Iron
Iron
Bridge24 asked on 11 Dec 2014, 07:20 PM
I want to update my kendogrid data using that:

$('#myGrid').data('kendoGrid').dataSource.data(myArrayVariable)

I always get that error: "object is not a function"

I traced the code, and I had to change the line 55564 in src/kendo.all.js (version 2014.3.1209)

current = $(that.current()),
-> 
current = that.current

Not sure if that fix works for all possible case, but it solved my issue.

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 15 Dec 2014, 08:40 AM
Hello Dani,

Could you please provide more information about your configuration? What Grid features are turned on? When you attempt to modify the data and that myArrayVariable contains?

It would be best if you can prepare a small Kendo Dojo test page which demonstrates the issue so we can examine it in details and advice you further.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bridge24
Top achievements
Rank 1
Iron
Iron
answered on 25 Mar 2015, 03:14 PM
Oh, I finally found it :D I used my kendoGrid variable (received from .data("kendoGrid")) to store more values, and that makes the grid generates error... I stored these variables elsewhere and how everything is OK when I refresh update my data! Thank you.
Tags
Grid
Asked by
Bridge24
Top achievements
Rank 1
Iron
Iron
Answers by
Alexander Valchev
Telerik team
Bridge24
Top achievements
Rank 1
Iron
Iron
Share this question
or