Is it possible to have a select drop down inside of the AngularJS ng-grid?

后端 未结 4 954
广开言路
广开言路 2021-02-04 12:34

I have coded the following:

$scope.gridOptions = {
    data: \'myData\',
    enableCellEdit: true,
    multiSelect: false,
    columnDefs: [
        { field: \'I         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 13:24

    Here is output of some experiment.

    http://plnkr.co/edit/W1TkRgsp0klhqquxaiyc?p=preview

    It seems that you can put select in cell template. And you can make use of row object to retrieve whatever you need. I used row.rowIndex to property access to the original data.

    template example:

    (It would be beutiful if we can write to ogirinal data through row object. I do not know how.)

提交回复
热议问题