Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [lightningtreegrid]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
130 views

LWC lightning-tree-grid disable checkbox on parent rows

I'm having a lot of trouble with lighting-tree-grid. You can't disable any checkboxes rows or hide grid-lines or hide columns. Salesforce support says "there's an open work item on lighting-tree-...
afandre's user avatar
  • 63
0 votes
2 answers
206 views

LWC Treegrid how do I hide headers or columns

I'm having a hard time figuring out styling for the lightning-tree-grid. I want to implement this styling. and hide my id column. I tried adding classes to the grid and to columns but nothing happens. ...
afandre's user avatar
  • 63
0 votes
0 answers
155 views

How to pass data dynamically to lightning-tree-grid

In my LWC, I am following LWC example to implement lightning-tree-grid within lightning-layout-item as accordions. I have the data in the JSON format as below: "contents":[ { ...
Austin Evans's user avatar
0 votes
1 answer
175 views

Unable to Adjust Column Width Using Tree Grid

I am using a tree grid and in the column properties I have a column with the type: 'action' which renders a dropdown list with the list of typeAttributes I've specified. The issue I'm encountering is ...
user1718612's user avatar
0 votes
1 answer
173 views

Unable to dynamically populate lightning tree grid

I am hitting errors trying to dynamically populate a lightning-tree-grid. I ran the example from the documentation which worked, but when I tried to dynamically populate the table, I unable to get the ...
user1718612's user avatar
0 votes
0 answers
129 views

Trying to expand treegrid with fields not working

First of all, I'm super new to LWC. This is really my first project. I am trying to build a treegrid on the Application__c object and have a display of all related App_Equipment__c records (...
Brittanie Goldsmith's user avatar
0 votes
1 answer
599 views

Need Help with Lightning Tree Grid: Fetching Parent and Child Records on Button Click

I'm currently working on an Aura component that utilizes the Lightning Tree Grid table in Salesforce. My goal is to retrieve both the parent record and its associated child records when a button is ...
Pavan tej's user avatar
  • 1,458
0 votes
1 answer
511 views

LWC group record by category lightning-tree-grid ignores the hierachy

I currently have a LWC ( which i didn’t create as totally new to LWC) that returns a lightning-datatable that allows a user to select many products and then do some logic. I am now asked to have this ...
Langloic's user avatar
0 votes
1 answer
1k views

how to set height of icon in lwc datatable or lightning tree grid

I've been struggling for a while now trying to set the height of icons displayed in lwc datable or lightning tree grid. In short, I'm unable to have any impact on their height. I find that readability ...
yeye's user avatar
  • 125
0 votes
1 answer
2k views

LWC Tree grid ontoggle action triggers onrowselection

This is how I am using treegrid component. When I expand a treegrid row, and then collapse it, automatically onrowselection event is fired, which calls onRowSelection action handler in JS controller ...
Always Learn's user avatar
1 vote
0 answers
280 views

lightning tree grid not removing data on filter change

I have a lightning-tree-grid with a filter. When I initially select a value in the filter, it works fine. However, when I change the filter to a new value, the previously pulled records remain in the ...
Luke Higgins's user avatar
3 votes
0 answers
768 views

How to get unchecked value on lightning tree grid?

There is standard behavior on Lightning tree grid, where when we expand a parent, select a child, then collapse it, the child will be unselected. I am now able to keep the selected child value. ...
user2018's user avatar
  • 351
0 votes
1 answer
2k views

Expand all rows of LWC tree-grid with asynchronous loading

I'm having trouble figuring out how to create a button to expand all rows with my current setup. The child rows are only loaded when the parent is toggled. Is there a way to retrieve them all at once ...
Luke Higgins's user avatar
0 votes
2 answers
1k views

How to remove checkboxes from parent rows in Lightning:treeGrid in Aura component and keep them on children rows only

How can I remove the checkboxes on the first column of the TreeGrid for the parent rows and only keep the checkboxes for the children rows? I've read countless articles and the only thing I found so ...
Dr.Simplisist's user avatar
1 vote
1 answer
1k views

How to show record details of a row selected in lwc tree grid in a side bar, without redirecting current page

I have a custom requirement like----- In the record detail page of any Account, when clicking a button, a modal popup will be lanuched. The popup will have a lwc tree grid listing all the Contacts ...
Anu Appukuttan's user avatar
0 votes
1 answer
745 views

How to get recordID of row on mouseover in lightning-tree-grid?

I have a lightning-tree-grid on which I would like to have a hover on the first column. How do I pass the id of the record to a child component to show extra data of the record on mouseover? Whenever ...
jerry123's user avatar
1 vote
1 answer
240 views

Aura to LWC migration issue with lightning-tree-grid (insertBefore/appendChild errors)

I am migrating an existing Aura component to LWC, but am having difficulties with the standard lightning-tree-grid component. Once the gridData is loaded I get two errors in the console: Error: [LWC ...
Rob Grigorian's user avatar
-3 votes
1 answer
2k views

lightning treegrid [closed]

I have a lightning tree grid.. I want to edit on of the columns ... is inline edit possible in data grid tree . I have tried to make the column editable but it does not support Is there anyways we ...
srikanth reddy kamsani's user avatar
0 votes
1 answer
890 views

Forming tree structure in lwc component with single custom object [closed]

I have a scenario to build tree structure for an custom object which has its two own lookups(Parent and Alternate Parent). I need to form a tree like All there record has comes under same record of ...
Richie's user avatar
  • 1
1 vote
0 answers
1k views

LWC Tree Grid Won't Display Relationship Fields From SOQL! [duplicate]

Strange, but it seems the LWC Tree Grid component will only display fields on the object(s) queried, and not any values retrieved through a relationship (__r). I can't imagine why this would be - the ...
number41's user avatar
  • 980
1 vote
1 answer
1k views

Lightning Tree Grid LWC Render issue

When I assign hardcoded Javascript JSON in LWC then the Tree Grid gets rendered. const items = [{label:"Premier League",name:"Premier League",type:"League",treeIcon:'...
Mohit K's user avatar
  • 766
0 votes
3 answers
3k views

Cannot add property _children, object is not extensible

I am trying to work with lwc tree-grid and move the results returned from my query display there related data. However it looks like the return is now non-extensible and as such you can no longer ...
TimChadwick's user avatar
2 votes
0 answers
439 views

default wraptext for lightning-tree-grid cell

I see there is a wrapText by default support for datatables in Aura and LWC. Would like to post this question on a broader platform and see if there is a way to default wrapText in lightning-tree-grid ...
Murthy Tumuluri's user avatar
1 vote
0 answers
3k views

LWC tree-grid rows not expanding

I'm building a lighting web component that displays hierarchal data. Its wrapped in an aura component. The issue I've encountered and am stumped on is expanding a single row that has children. The ...
cheeriepie's user avatar
0 votes
1 answer
939 views

how to remove the chevrondown button in treegrid???? in Lightning Web Component - Tree Grid

I checked here https://www.lightningdesignsystem.com/components/tree-grid/#site-main-content that there is an option to "When a branch doesn't have children, apply slds-is-disabled to the ...
vp3's user avatar
  • 3
2 votes
2 answers
2k views

How to get label of the node in lightning-tree in LWC

What is the way to get the label of the lightning-tree node on-click/on-select on javascript handler in lwc? myLwc.html : <lightning-tree items={sidebarStructure} onselect={handleSidebar}><...
Navii's user avatar
  • 158
2 votes
1 answer
1k views

Can we add static resource image in lightning treegrid?

COMPONENT: <lightning:treeGrid columns="{! v.gridColumns }" data="{! v.gridData }" keyField="name" expandedRows="{! v.gridExpandedRows}" aura:id="mytree" /...
Selvin's user avatar
  • 21
1 vote
0 answers
1k views

How to reset selected rows in LWC

I try to reset the selected rows on an LWC within a lightning-grid. I'm starting an LWC inside of an Aura Wrapper because I have to use the URL-Addressable interface. This works fine and the component ...
utm's user avatar
  • 552
1 vote
1 answer
3k views

How to add a link to my lightning-tree-grid rows?

I'm using Lightning-tree-grid to display my data and I want to make the first column displayed as a link to the record page, So I tried to make it a button : type: 'button', typeAttributes: ...
collin's user avatar
  • 93
1 vote
2 answers
4k views

LWC Tree Grid - Displaying actions conditionally

I've created a tree grid LWC component that includes few actions. Is there a way to display actions depending on a certain value of the record/row? For example, let us say I'm displaying users and I ...
Shai's user avatar
  • 283
0 votes
1 answer
1k views

Lightning:TreeGrid size limitations and alternatives to asynchronously fetch parent data

Other than the limitations given in lightning:treeGrid, what are the limitations on the number of parent rows that can be displayed in the tree grid? Definitely we cannot more than 50000 records that ...
Hemavantha Rajesh Varma Mudunu's user avatar