Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Reload event on Angular-Kendo grid #386

Open
farturi opened this issue Aug 28, 2014 · 1 comment
Open

Reload event on Angular-Kendo grid #386

farturi opened this issue Aug 28, 2014 · 1 comment

Comments

@farturi
Copy link

farturi commented Aug 28, 2014

I have a grid with Angular and Kendo like as example page.
It's possible to reload the grid by clicking an external button ?
And apply some filter by taking the value of an external text box?

Is there an example of how to do that?

Thank you very much.

@lijuenc
Copy link

lijuenc commented Sep 1, 2014

To refresh the grid, you need to get a reference to its element and call some methods on it. It's pretty ugly, but if you keep this logic in a service you can keep the ugly in one spot.

var gridEl = angular.element('#myGridElement');
gridEl.data('kendoGrid').dataSource.read();
gridEl.data('kendoGrid').refresh();

To take external values as parameters, you need to use a custom transport.read/create/update method. Inside this method, you merge your external values with Kendo's.
http://docs.telerik.com/kendo-ui/api/framework/datasource#configuration-transport

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants