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

kendo ui grid don't refresh

3 Answers 744 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lukass
Top achievements
Rank 1
Lukass asked on 03 Apr 2012, 11:22 AM
Hi,
first, im sorry for my bad english.

I have grid, and i have window, which via ajax insert into db new row, close itself, and try refresh grid in ajax succes function. Close is sucessfull, but grid reload doesnt do anything :(

I try button with onclick="ted()" and function is: 


function ted() {
var grid = $("#grid_clients").data("kendoGrid")
grid.refresh();
}


But refresh doesnt working still.. please can u tell me, what is wrong?

3 Answers, 1 is accepted

Sort by
0
Lukass
Top achievements
Rank 1
answered on 03 Apr 2012, 01:11 PM
Now, i have solution, so for others:

grid.dataSource.read(); 
grid.refresh();
0
Mahaveer
Top achievements
Rank 1
answered on 11 Apr 2012, 06:55 AM
Hi,

Can i refresh only the datasourse? means whole table will not refresh only datasourse will refresh?
Please send me the answer on id mahaveer_agrawal@gmail.com
Regards
Mahaveer
0
Dimo
Telerik team
answered on 11 Apr 2012, 08:10 AM
Hi,

This is possible only if you are using the Kendo datasource with generic HTML table, as in this demo:

http://demos.kendoui.com/web/datasource/index.html

(note that you will have to remove the change event handler)

The Kendo Grid listens for the datasource's change event, so refreshing the datasource will always cause the Grid to rebind as well.

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