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

Manually refreshing dataSource and Grid

1 Answer 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josias
Top achievements
Rank 1
Josias asked on 10 Sep 2012, 07:07 PM
Hello,


I'm new to Kendo UI, so this may turn out to be pretty trivial. I have an ajax bound grid that's initially bound to a set of records. I'm planning on having a form within the same page which the user will fill out to add new records, I'm not using inline or popup editing because the data needed to generate a new record won't necessarily have a 1:1 correspondence with the grid model's fields and because of interface design requirements. My question is, after adding a new record to the set via ajax, how can I refresh the grid to reflect the changes made to the set? I provide a test solution I tinkered with, I tried to hook into the dataSource's change event and refreshing the grid after I successfully call .read() on it, but to no avail, I have an html button I call to add a mock random record server side. Any suggestions? Am I missing something?

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 13 Sep 2012, 01:13 PM
Hello Josias,

I have looked at the sample project you have provided. It seems that the kendo.aspnetmvc.js is not included. Adding this file should resolve the issue you have described.

Information on how to setup KendoUI for ASP.NET MVC can be found in this help article.

Regards,
Rosen
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
Josias
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or