AngularJS ui-grid: how to select the the set of attributes in a Data to display in tabe -


i'm trying use ui-grid displaying data ajax call. data returning call have many attributes. need display particular attributes in ui-grid. how that.

for example ajax call return below attributes

  var resp = { "status":true, "msg":"", "sendtran":[{ "document_gid":"xxxx", "documentid":"xxx", "documenttype_name": "xxx", "created_date":"xxxx", "verification_status":"xxx" }] }; 

resp ajax return values. have multiple attributes , need sendtran attributes bind grid.

var data = []; $scope.sendtranscripts = {         paginationpagesizes: [10, 25, 50, 75],         paginationpagesize: 20,         showgridfooter: true,         showcolumnfooter: true,         enablefiltering: true,         enablegridmenu: true,         enablerowselection: true,         enableselectall: false,         selectionrowheaderwidth: 35,          columndefs: [                      {                 field: 'documentid', width: '20%', displayname: 'document id', celltooltip: true, headertooltip: true             },             {                 field: 'documenttype_name', width: '40%', displayname: 'document name'             },             {                 field: 'verification_status', width: '20%', displayname: 'document status'             },             {                 field: 'created_date', width: '20%', displayname: 'created date'             }          ],         data: data }; $scope.sendtranscripts.data = resp.data.sendtran; 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -