Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can't select the row by clicking the select checkbox available in the respective row when enableFullRowSelection : true" #5239

Closed
yogeshsonawane opened this issue Mar 21, 2016 · 5 comments · Fixed by #6692
Assignees

Comments

@yogeshsonawane
Copy link

ui-grid version : 3.1.0 and 3.1.1

Description of the issue:
User can't select the row by clicking the select checkbox available in the respective row. This issue is reproduced only when the "enableFullRowSelection : true" in the grid configuration. In case of false the check-box selection works fine.

Steps

  1. Create the grid having "ui-grid-selection" feature enable
  2. make the enableFullRowSelection : true,
  3. click on the check-box against the any row.
  4. User can't select the row.
@yogeshsonawane
Copy link
Author

@angular-git-user
Copy link

You can do something like this..

  1. Create a singleclick even on row template
    self.rowTemplate = function(){ return '<div ng-dblclick="grid.appScope.rowDblClick(row)" ng-click="grid.appScope.rowSingleClick(row)" >' + ' <div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader }" ui-grid-cell></div>' + '</div>' };

  2. write a function on its appscope
    $scope.rowSingleClick = function(row){ if(row.isSelected != undefined) { if(row.isSelected === true){ self.gridApi1.selection.unSelectRow(row.entity); }else{ self.gridApi1.selection.selectRow(row.entity); } }else{ self.gridApi1.selection.selectRow(row.entity); } };

I'm using this for my project it should work..

@antonio91kim
Copy link

antonio91kim commented Oct 26, 2016

+1
I can do some work around like above. but it's bad to set template to all column.
As I checked, the rowheader (checkbox) is disabled by "enableFullRowSelection". It could be a bug.

@thorvx
Copy link

thorvx commented Dec 13, 2016

Try this style to enable checkbox selection:

.ui-grid-cell.ui-grid-disable-selection.ui-grid-row-header-cell {
    pointer-events: all;
}

@gBe1983
Copy link

gBe1983 commented Sep 28, 2017

mportuga pushed a commit that referenced this issue Apr 24, 2018
…ection.

Allows selection from the checkbox on row headers when enableFullRowSelection is on.

fix #5239
@mportuga mportuga self-assigned this Apr 24, 2018
mportuga pushed a commit that referenced this issue Apr 24, 2018
…ection.

Allows selection from the checkbox on row headers when enableFullRowSelection is on.

fix #5239
m4m4m4 pushed a commit to m4m4m4/ui-grid that referenced this issue Apr 24, 2018
…ection.

Allows selection from the checkbox on row headers when enableFullRowSelection is on.

fix angular-ui#5239
defields923 pushed a commit to defields923/ui-grid that referenced this issue Oct 30, 2018
…ection.

Allows selection from the checkbox on row headers when enableFullRowSelection is on.

fix angular-ui#5239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants