Ticket T617590
Visible to All Users

Angular DevExtream Datagrid edit form mode databox value change event get neighbouring cell value

created 7 years ago

Hi

I want to get neighbouring cell value from  Datagrid edit form mode databox value change event

I use to following cade but argument only return relevant field dara only can't get rowdata or   neighbouring cell value

JavaScript
onFieldDataChanged(e: any) { if (e.parentType == 'dataRow' && e.dataField == 'LastRenewalDate') { e.editorOptions.onValueChanged = function (args) { const xe = args; //here I want to get neighboring cell value and change it it should reflect on the cell as well } } }

I use Angular 5

Answers approved by DevExpress Support

created 7 years ago (modified 7 years ago)

Hi Danushka,

Do you need to calculate a new cell value based on other fields in this row? If so, use the column's setCellValue function. In it, you will get the current editor value as the second parameter, the entire row as the third parameter. Calculate your value and set it to the required field of the first function parameter. Check out the code snippet provided in the setCellValue help topic that illustrates this.

    Comments (3)
    D D
    Danushka Amith W 7 years ago

      I try to use it but it is not working I am using form mode in the data grid

      D D
      Danushka Amith W 7 years ago

        Hi Gosha,

        It worked I made a small mistake ignore last comment.

        Thank you very much

        DevExpress Support Team 7 years ago

          You are welcome, Danushka!

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.