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

Refresh Data Issue

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig Broadhead
Top achievements
Rank 1
Craig Broadhead asked on 05 Jul 2013, 09:20 AM
Hi,

I have a grid that can be altered through calls to a webservice as users adjust things on a page.

To do this I initially did the following

    var grid = $("#grid").data("kendoGrid");
        var dataSource = new kendo.data.DataSource({ data: CategoryPlanList, pageSize: 15 });
        grid.setDataSource(dataSource);

Which updated my data perfectly, however I also needed to update columns whilst doing this, after some reading around I found a post saying I would have to remove and re-initialize the grid if I wish to do this, so I do:

        grid.destroy();
        $("#grid").empty();

and then re-create the grid using the same code that I used to initialize the grid in the first place, however this appears to have the issue that when the data is reloading the reordable facility on the grid ceases to function.

Does anyone know of a way where I can re-load a grid with new data and a new set of columns without the re-odering isue?

Thanks

Craig

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 09 Jul 2013, 06:54 AM
Hello Craig,

I assume that the problem is the version that you are using.

Here how it works with the beta version (it works properly)

http://jsbin.com/ilavoz/4/edit


And here is the Q1 version:

http://jsbin.com/ilavoz/5/edit

Could you try to update to the latest internal build?

Regards,
Petur Subev
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
Craig Broadhead
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or