question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update row column will collapse rowDetail

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior

Collapse rowDetail after column value updated

Expected behavior

Update column value without collapse rowDetail (or not refresh whole table)

Reproduction of the problem

like the example code below https://stackblitz.com/edit/angular-yvwhus?file=app%2Fapp.component.ts

There is a button call “Austin growup” , after clicking , the Austin’s age will change and update table through this.rows = […this.rows] in function updateTable().

But when I click button after expanding the detail row, the table will refresh and collapse all the rowDetail.

I think the problem is this.rows = […this.rows]. I believe that will refresh whole table.

so…is there any way to dynamically update one row’s value without collapse rowDetail (or without whole table refresh).

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Table version: 11.1.7
  • Angular version: 5.1.1
  • Browser: all
  • Language: TypeScript

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:11

github_iconTop GitHub Comments

5reactions
Humberdcommented, Sep 4, 2018

This is the only issue we are facing. This needs to be merged

2reactions
dapullarcommented, Dec 10, 2019

@KaterinaMykhailyk rowIdentity is the anchor that keeps the rows open regardless of what is being used as the update method for the table. As long as the rowIdentity for the target remains static they should not close.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Collapse Rows And Columns In Excel - Excelchat
Click to learn how to collapse multiple rows and columns, ... Next, we will go to the Data Tab and select Hide detail...
Read more >
How to Use the Excel Collapse Rows Feature? — 4 Easy Steps
If you want to collapse rows inside already existing collapsed rows, repeat the same process. Select the rows and go to Data >...
Read more >
How to group rows in Excel to collapse and expand them
Another way to collapse rows in Excel is to select any cell in the group and click the Hide Detail button on the...
Read more >
Update row column without collapse rowDetail in ngx-datatable
But when I click button after expanding the detail row, the table will refresh and collapse all the rowDetail. I think the problem...
Read more >
DataItem set collapses detail row (annoying): how to expand it?
This ONLY happens when repainting the grid (such as by filtering, as above) after editing a cell. In addition, if after the filtering,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found