)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to use Angular template in the column of the Grid ?

Platform: jQuery |
Control: ejGrid |
Published Date: July 6, 2015 |
Last Revised Date: July 6, 2015

You can render the column template directly in the Angular Grid column element with its Angular directives. The Angular controller scope values can be used by $parent property in the template.

Initialize the Grid with the column template. Declare the image template with the Angular directive (ng-src) and Angular scope value ($parent.title).

 

Define the Grid DataSource and scope value in the Angular controller.

 

The output of above sample is as follows.

ADD COMMENT
You must log in to leave a comment
Comments
Kevin robinson
Jul 29, 2016
How do I bind to the grid using an angular promise.  Do I have to use the "dataManager" ?   


var volunteerPromise = clientServices.GetAllClientsByVolunteerId(volunteerId);
volunteerPromise.then(function (response) {
vm.clients = response.data;
}).catch(function (error) {
vm.status = error;
}).finally(function () {
vm.loading = false;
});
Reply

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon