We are using Angular6. Is it possible to create child rows under a parent row in ng-grid? For example: I have a number rows in ng-grid where each row with attributes of a school, and when I select a single row in it, it will display a child grid (pop up) with each row giving details of children under that school.
I havent seen such angular example in web.
here is the sample code of row selection.
Please suggest the change to enhance to load child table popup on row selection
Related
I'm using Syncfusion in our React application. For a particular page, we are using a TreeGrid component. When we expand a data row, is it possible to keep that expanded parent row frozen in place while we scroll thru the data in the child rows?
I've attached a screen shot. In this example, I expanded the "Interested" row to show the subrows beneath it. I'm trying to freeze the top "Interested" row while I scroll. We'd also want to be able to expand multiple parent rows (Interviewed, App Started, etc.), be able to scroll thru them with the parent row frozen, and when through all of each parent's children, go to the next parent row and freeze that one while we scroll the next set of children.
Does that make sense? Please let me know if this is possible, and if you have any questions. Thanks!
sync table
Query: When we expand a data row, is it possible to keep that expanded parent row frozen in place while we scroll thru the data in the child rows?.
Currently, we don’t have support for freezing the parent rows while scrolling the child rows of the treegrid. And currently we don't have any plan to implement this feature.
I am trying to have different columns and column names for child rows than the parents rows in TreeView in UI-Grid
There is already a question asked, but the link provided in the comment section has expired.
Angular UI-Grid Tree View - Change the Column Header for Child Tree Levels
I found the solution to this problem. We can use expandable grid to achieve this feature.
Link to UI-Grid Expandable Grid Documentation
I have a angular page which shows 1000 of nested record (parent- child up to n-level) and further user can add/edit/delete the record from UI at any location. Each row contains a button to add row above/below, based on that new row is created. This UI has also drag and drop functionality over each row so if any row is draged over another then parent child rows created. For this we have a json collection in nested way and in UI we have created a directive which is called recursively to show the nested record using ng-repeat.
We are facing performance issue here, if user try to add a new row at any specific point we are adding a new blank row in json data on specified index and based on this blank row a blank form is shown which renders very slowly.
Functionality is working but whenever a new add/update/deleted happens over row then it stuck and takes time to re-render the UI.
I cannot implement pagination here to restrict rows as user can create parent child relation by dragging over any row so all record should be shown.
Any one can suggest if other way around for this performance issue?
I am having a situation where I want to add input box at the end of the table. Is it possible to do this in ui-grid. I know rowTemplate, but it applies to whole column. I want to apply only to the last row of the table.
Folks,
I am trying to display EXT JS with Row Expander plugin in a Visual Force page.
Check this link http://mikhailstadnik.com/ext/examples/nested-grid.htm
As per the link, I am successful in displaying Accounts in first grid and respective Contacts in child grid.
Problem is: When I click on first row, it is expanded and shows the respective contacts.
When I click on second row and first row is not closed, the data which I can see for second row (Contacts) are visible at first row contacts also.
So, I think when second row is clicked, I need to close the first row.
Please suggest me how to do this..
The plugin you are talking about features collapseRow(row) method.
Each time you are trying to expand a row (use beforeexpand event for that) you need to loop through all the rows and collapse expanded ones.
Here is how you check if the row is expanded:
Ext.fly(row).hasClass(this.rowCollapsedClass) // this is referring to plugin instance