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

[Solved] Grid refresh to updated data

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 26 Jan 2015, 10:03 AM
Hi

I update my data through one of my own functions. I am looking for a function that reloads the data.

grid.dataSource.read(); does not work

Here is my example

http://jsbin.com/jizujevixi/1/

Many thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 28 Jan 2015, 07:57 AM

Hello Markus,

DataSource read will force re-read of the data and repaint of all widget attached to this data source. It might seem in your case that the data is not re-read as it is initially given as array.

If you need calling `createRandomData` function of every read you will have to define transport.read as function instead.

Here is updated example - http://jsbin.com/dahafeqela/2/edit?html,js,output

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Markus
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or