Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
540 views
in Technique[技术] by (71.8m points)

javascript - Transferring the values of selected rows on the same column to other selected columns devexpress dx-data-grid

I have an angular project, use devexpress components. I'm trying to encapsulate dxi-grid component. My question aboult batch edit and updating selected rows same columns,

I have a table like the one below and it works with batch updating.

I want all of the fields under the fields I have chosen multiple times in this field to be updated.

I researched his document and many tickers, but couldn't come to a conclusion.

Could someone help with a problem like this?

  <div id="data-grid-demo">
    <dx-data-grid id="gridContainer"
                  [dataSource]="dataSource"
                  keyExpr="ID"
                  [showBorders]="true">
<dxo-selection
        mode="multiple">
    
    </dxo-selection>
        <dxo-paging [enabled]="false"></dxo-paging>
        <dxo-editing mode="batch"
                     [allowUpdating]="true"
                     [selectTextOnEditStart]="selectTextOnEditStart"
                     [startEditAction]="startEditAction">
        </dxo-editing>

        <dxi-column dataField="Prefix" caption="Title" [width]="70"></dxi-column>
        <dxi-column dataField="FirstName"></dxi-column>
        <dxi-column dataField="LastName"></dxi-column>
        <dxi-column dataField="Position" [width]="170"></dxi-column>
        <dxi-column dataField="StateID"
                    caption="State"
                    [width]="125">
            <dxo-lookup [dataSource]="states"
                        displayExpr="Name"
                        valueExpr="ID">
            </dxo-lookup>
        </dxi-column>
        <dxi-column dataField="BirthDate" dataType="date"></dxi-column>
    </dx-data-grid>

</div>

my sample code is here

question from:https://stackoverflow.com/questions/65884656/transferring-the-values-of-selected-rows-on-the-same-column-to-other-selected-co

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...