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

Grid with AngualrJS support

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Raed
Top achievements
Rank 1
Raed asked on 24 Jun 2015, 08:51 AM

Hi,

How to get the selected row value in custom template and form condition based templates?

code of column field looks like

                    column:    [{   {
                              field: "actualSent",
                              template: "<button class="k-button" ng-click="cancel()"> Cancel </button>",
                              width : "200px"
                            }

I want to display Cancel button if the actualSent field value is > 100% else show completed. How to handle this inside grid and get the selected row data not values. I know to get the values of each column using \'#=fieldName#\'

Please suggest.  

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 29 Jun 2015, 07:03 AM

Hello Raed,

 

you may use the angularjs expressions to achieve that. the data item of the row is available as dataItem in the context of the expression - check the respective documentation.

 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Raed
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or