Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ui.grid row 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

like image 208
Overseas634 Avatar asked Dec 06 '25 02:12

Overseas634


1 Answers

<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

like image 96
technoSpino Avatar answered Dec 08 '25 15:12

technoSpino