Ticket T1283062
Visible to All Users

reg: event to get update of datagrid

created 6 months ago (modified 6 months ago)

Can we get the event of Datagrid when it is edited externally from other component?

I have inputs from other component from where when I edit, the datasource gets changed in Datagrid. I need an event to be triggered when there is a change in Datagrid.

Comments (3)
A A
Assylbek (DevExpress Support) 6 months ago

    Hello,

    If you change DataGrid data externally through DataSource|store, you can add an additional data field, for example FromGrid, to the DataGrid changes in the onSaving event handler.

    I created a CodePen sample that you can use as a starting point. Even though it is in jQuery, an Angular approach will be similar.

    If this does not fit your requirement, please describe your use case in greater detail. If possible, please create a working sample to demonstrate the issue so that we can analyze and debug it. You can extract one of our demos into a stand-alone example and demonstrate your implementation:

    • Press "Copy To …" to extract a demo into a stand-alone example;
    • Modify the example and use the "Save" button to apply changes and generate a new link;
    • Share the updated link here for further examination.

    Regards,
    Assylbek

      I'm still not able to get event when I change value. This is my code
      https://codepen.io/acshyam2k/pen/yyLKZNj

      I change the value from other component updating the datasource

      Alisher (DevExpress Support) 6 months ago

        Hi Shyam,

        It appears the code pen has been modified as it shows nothing:
        Clipboard-File-1.png

        Would you please update it to demonstrate your usage scenario?

        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.