$scope.myData = [{name: "Moroni", Date:
"01-1-2015",country:"india",address:"address"},
];
$scope.gridOptions = {
data: 'myData',
enableRowSelection:true,
};
<div flex>
<div class="gridStyle" ui.grid="gridOptions"> </div>
</div flex>
I have angular version 1.3.15 and i have installed angular ui-grid. after running my app it shows grid but not able to select row
$scope.myData = [{name: "Moroni", Date:
"01-1-2015",country:"india",address:"address"},
];
$scope.gridOptions = {
data: 'myData',
enableRowSelection:true,
};
<div flex>
<div class="gridStyle" ui.grid="gridOptions"> </div>
</div flex>
I have angular version 1.3.15 and i have installed angular ui-grid. after running my app it shows grid but not able to select row
Share Improve this question edited Mar 19, 2015 at 9:52 Overseas634 asked Mar 19, 2015 at 9:42 Overseas634Overseas634 472 silver badges10 bronze badges 2- Are you using ng-grid 2.* or ui-grid(which is really ng-grid 3.0)? – technoSpino Commented Mar 19, 2015 at 10:30
- im using "version": "3.0.0-rc.20" – Overseas634 Commented Mar 19, 2015 at 10:43
1 Answer
Reset to default 13<div class="gridStyle" ui.grid="gridOptions"> </div>
needs to be
<div class="gridStyle" ui-grid-selection ui-grid="gridOptions"> </div>
You also need to add the module ui.grid.selection to your dependencies. Be sure to keep your '.' and minuses straight. Sometimes it doesn't matter until it does.
See UI-Grid Selection For more details