Wijmo supports AngularJS, a lightweight MVC JavaScript framework, allowing you to easily create and maintain a dynamically changing UI. You can use AngularJS in addition to jQuery to enhance your pages with an underlying data model. This blog demonstrates how you can use Wijgrid and handle its event/properties with AngularJS. First of all, you need to add the references of Wijmo from the CDN link. After this, you can create a model and a controller like this:
Whenever we are using Angular JS, we need to define the document as an Angular app and it can be done by adding a ng-app attribute in the HTML tag i.e.
After this, we must define the scope our Controller to a DOM element. In this case we will use the body so that anything inside of it will have access to the Model:
Finally, the markup used to create the Wijgrid widget is slighltly different from the default markup in terms of syntax. The code will look like:
In the above code, you will observe that properties of Wijgrid or its columns are defined like the way, we use in ASP.NET server controls. For complete tutorial, you may refer to this link. Event Handling Whenever you wish to handle any event of Wijgrid then make sure that it is in the scope. And you can directly set the function name to the event as done in above code. You can define the event as:
Please refer to this sample for complete implementation. To read more on using Wijmo with AngularJS, you may refer to this blog.