2 expand arrow

hey there,

i have 2 expand arrows on the same cell with the following code:

<RadzenDataGrid @ref="TabPamPartLibGrid"
                    AllowFiltering="true" 
                    FilterMode="FilterMode.Advanced" 
                    FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                    AllowColumnResize="true"
                    AllowColumnPicking="true"
                    RowRender="@PartLibRowRender"
                    ExpandMode="DataGridExpandMode.Single"
                    Data="@TabPamPartLibList" 
                    Count="@countList" 
                    TItem="TabPamPartLib"
                    AllowPaging="true" 
                    PageSize="10" 
                    ShowPagingSummary="true"
                    PagerHorizontalAlign="HorizontalAlign.Left"
                    LoadChildData="@LoadChildData">
                        <Template Context="TabPamPartLib">
                            <RadzenSplitter Orientation="Orientation.Vertical">
                                <RadzenSplitterPane title="Connector Detail" Size="25%">
                                    <RadzenCard Style="margin-bottom:20px"> 
                                        <b>@TabPamPartLib.sPartNumber</b> Datasheet and Pin Allocation:
                                    </RadzenCard>
                                    <RadzenDataGrid @ref="TabPamPinArrGrid"
                                    Data="@ConnectorArr"
                                    AllowFiltering="false"
                                    TItem="TabPamPinArrangement">
                                        <Columns>
                                            <RadzenDataGridColumn TItem="TabPamPinArrangement" Property="Id"            Title="Id"/>
                                            <RadzenDataGridColumn TItem="TabPamPinArrangement" Property="sSpecOwner"    Title="Spec Owner"/>
                                            <RadzenDataGridColumn TItem="TabPamPinArrangement" Property="sPartSerie"    Title="Part Serie"/>
                                            <RadzenDataGridColumn TItem="TabPamPinArrangement" Property="sArrSerie"     Title="Arrangement Serie"/>
                                            <RadzenDataGridColumn TItem="TabPamPinArrangement" Property="sArrName"      Title="Arrangement Name"/>
                                            <RadzenDataGridColumn TItem="TabPamPinArrangement" Property="sCtCode"       Title="Contact Code"/>
                                        </Columns>
                                    </RadzenDataGrid>
                                </RadzenSplitterPane>
                                <RadzenSplitterPane title="Allocation Detail" Size="75%">
                                    <RadzenSplitter Orientation="Orientation.Horizontal">
                                        <RadzenSplitterPane title="Allocation Detail" Size="50%">
                                            <RadzenText TextStyle="TextStyle.Body1" Class="my-4">
                                                ici le tableau des pins allouées.
                                            </RadzenText>
                                        </RadzenSplitterPane>
                                        <RadzenSplitterPane title="Allocation Image" Size="50%">
                                            <RadzenText TextStyle="TextStyle.Body1" Class="my-4">
                                                ici l'image des pins allouées.
                                            </RadzenText>
                                        </RadzenSplitterPane>
                                    </RadzenSplitter>
                                </RadzenSplitterPane>
                            </RadzenSplitter>
                        </Template>
                        <Columns>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="Id"               Title="Id"                      Width="75px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sPartID"          Title="Part ID"                 Width="125px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sPartNumber"      Title="Part Number"             Width="200px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sSpecOwner"       Title="Spec Owner"              Width="125px"   Visible=@shown/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sElecPartSerie"   Title="Electrical Part Series"  Width="200px"   Visible=@shown/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sInsertArrSerie"  Title="Insert Arr Series"       Width="125px"   Visible=@shown/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sInsertArrID"     Title="Insert Arrangement ID"   Width="75px"    Visible=@shown/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sElecPartType"    Title="Electrical Part Type"    Width="200px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sDescription"     Title="Description"             Width="250px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sBackshell"       Title="Backshell"               Width="125px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sBackshell0"      Title="Backshell0"              Width="125px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sFLT"             Title="FLT"                     Width="100px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="sCAPS"            Title="CAPS"                    Width="100px"/>
                            <RadzenDataGridColumn TItem="TabPamPartLib" Property="iReplacedBy"      Title="Replaced By"             Width="125px"/>
                        </Columns>
                    </RadzenDataGrid>

My result:

what i want to do is open another table information from the expanded row foreign key
the behavior of my code is correct except for the expand arrows

You have both self-referencing data with LoadChildData and Template which defines details for row - mutually exclusive features. Still you can try to set ShowExpandColumn to false.

i use

LoadChildData="@LoadChildData" 

to set up my

Data="@ConnectorArr"

since i can't find an event to use my foreign key as an argument like this:

void LoadChildData(DataGridLoadChildDataEventArgs<TabPamPartLib> args)
    {
        DataAccess db = new DataAccess();
        ConnectorArr = db.GetConnector(args.Item.sInsertArrID).AsEnumerable();
    }

setting ShowExpandColumn to false erase both arrows :frowning:

i'd like to replace the parent LoadChildData by a child LoadData instead but i can't catch my foreign key without the good event.
and i can't find the row expand event to get my argument :frowning:

Ok i did it !!

i set up my Rowrender event in order to fill my next datagrid with the corresponding data
no more use of loadchildata

this topic can be closed thx