0
ここで私はwijmoグリッドと同じディレクティブを作成しました。ここで私の問題は選択された行の値を取得できません。事前に おかげ選択の仕方wijmoグリッドを使用してオブジェクト値を変更しました
app.directive('customFlexGrid', function ($compile) {
return {
restrict: 'E',
template: '<div/>',
replace: true,
scope: {
itemsSource: '=',
gridheader: '='
},
link: function (scope, element, attrs) {
var grid = new wijmo.grid.FlexGrid(element[0]);
scope.$watch('itemsSource', function() {
grid.itemsSource = scope.itemsSource;
grid.columns[1].width = 300;
grid.selectionMode= "Row";
grid.isReadOnly=true;
});
}
}