ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

ui grid selection column row height

Open mmreddy0306 opened this issue 10 years ago • 17 comments

Hi Team,

I have increased the row height in UI Grid using the below CSS. I need dynamic rowHeight.

  [ui-grid-row] {
    display: table-row;
  }
  .ui-grid-row, .ui-grid-cell {
    height: auto!important;
  }
  .ui-grid-cell {
    float: none;
    display: table-cell;
  }
  .ui-grid-header-cell, .ui-grid-cell-contents {
    white-space: normal;
    padding: 2px;
    word-break: break-word;
  }

But the issue is, When i inject ui-grid-selection component into the grid. UI Grid row height is not in sync with ui.grid.selection column cell.

Could you please suggest how to proceed furthur on these.

Thanks, Mohan Reddy M. @angular-ui-grid

mmreddy0306 avatar Feb 29 '16 05:02 mmreddy0306

You can try the below code.

.ui-grid-viewport .ui-grid-cell-contents {
  word-wrap: break-word;
  white-space: normal !important;
   overflow:visible;
}

.ui-grid-cell {
    display : table-cell;
    height: auto !important;
    overflow:visible;
    position: static;
}

.ui-grid-row {
  height: auto !important;
  display : table-row;
  position: static;
}

.ui-grid-row div[role=row] {
  display: flex ;
  align-content: stretch;
}

myGitHubForum avatar Mar 02 '16 19:03 myGitHubForum

I tried the new css but still grid row is not in sync with ui.grid.selection column cell. Could anyone please suggest how to proceed further.

Now i'm facing one more issue. Actually i have two grid in single page. When user clicks a row cell in first grid, then a row from second grid has to be selected. And I have increased the height all the rows in second grid using the above specified css. Now while invoking the function scrollToFocus function is not scrolling to the specified rows in the second grid. Anyone please help I'm new to Angularjs

mmreddy0306 avatar Mar 04 '16 12:03 mmreddy0306

HI @alangumer, @jibap, @PaulL1 , @c0bra, @calopez, Could you please suggest us how to solve the scrolling issue if we increase the height of grid rows using solution provided in #3239, #2746( CSS and AlignContainers function)

Issue: Increased the rows height based on content using above help provided by @alangumer and @jibap. But scrollToFocus or scrollTo function is not correctly scrolling to exact row.

Thanks, Mohan Reddy M.

mmreddy0306 avatar Mar 18 '16 07:03 mmreddy0306

Anything changed in this topic ? I need his also, it's quite natural behav. it's quite poor that ui-grid doesn't have it.

s4253 avatar Jun 22 '17 15:06 s4253

+1

ghost avatar Jul 20 '17 08:07 ghost

+1

mabdulhalim avatar Aug 01 '17 17:08 mabdulhalim

+1

charanteja03 avatar Sep 07 '17 12:09 charanteja03

+1

kimcavalcanti avatar Oct 04 '17 12:10 kimcavalcanti

+1

ghost avatar Nov 15 '17 18:11 ghost

+1

ivansaldayev avatar Dec 07 '17 11:12 ivansaldayev

try this: .ui-grid-selection-row-header-buttons { display: flex !important; }

panagioths-k avatar Jan 18 '18 08:01 panagioths-k

Hi

try this: .ui-grid-selection-row-header-buttons { display: flex !important; }

Put the above code, selection column it does not fit the size. Help.

LeeSeongYeol83 avatar Jan 19 '18 07:01 LeeSeongYeol83

+1

ckelley7 avatar Apr 20 '18 03:04 ckelley7

+1

naldorp avatar Jun 14 '18 19:06 naldorp

Same issue here. Would be great to get some input from developers ;)

tonysepia avatar Aug 23 '18 11:08 tonysepia

I'm having the same issue here and the only possible solution I can think of is creating a custom select column, that will get the other column's widths.

Any progress on this?

nedislavd avatar Nov 12 '18 13:11 nedislavd

Thanks for contributing! This repository has been transferred, and we're preparing the new 5.x release. We're closing older issues and pull requests as part of the reset. Please join us on Discord to follow the work or continue the conversation: https://discord.gg/Baz4w8ZWN

orneryd avatar Aug 12 '26 23:08 orneryd