Display the data from kendo-grid to html using angularjs -


i working on this . displays data using kendo - grid. however, need when click on particular row in table, content fetched in object , using object can display fields below table. how can achieve that? also, believe need modify code if using objects display fields. appreciated.

first name: {{firstname}}<br> last name: {{lastname}}<br> country: {{country}}<br> city: {{city}}<br> 

it seems need listen row selection (change event), , selected row, bind angular variable inside scope describe in update

the key here change event triggered upon selection/deselection

grid configs ... change: function(e) {     var selection = this.select(),         selecteditem     ;      if(selection && this.dataitem(selection)) {         $scope.selecteditem = this.dataitem(selection).tojson();     } else {         $scope.selecteditem = {};     }      $scope.$apply(); } ... grid configs 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

ios - Possible to get UIButton sizeThatFits to work? -