Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
Summaries for new rows(igTransactions) as well as Datasource rows
posted

Hi,

I have a grid which has  two 'debit' 'credit' columns & I want to show the sum of these columns in my summaries. The issue I am facing is this that the sum is calculated only for the rows which are part of the grid's datasource or more specifically the rows which are loaded through DataSourcUrl, I have also allowed to Add New Rows to the grid, But the rows which are added through AddNewRows are not being calculated by the summaries. From what I know is that the summaries is only calculating the sum of rows which are committed & not the ones in the igTransactions.

What should be done to calculate the sum of normal rows(already-added(commited)) as well as those rows which are added later by the user through the "AddNewRow" button after the grid data is rendered. In simpler words How to calculate sum of already added rows as well as rows which are currently in 'igTransaction'.

Thanks.

Parents
No Data
Reply
  • 595
    posted

    I have set AutoCommit(true) but still new rows are not being calculated. Also if autoCommit is set to true, Does the UpdateUrl automatically gets called immediately after a new row is added every time? If this is the case than I dont want that to happen. I want to send all the new rows in a batch with my form model & not individually everytime.

    Also are the igTransaction empties everytime  when a new row is added? If yes than how would I get the newly added rows in my javascripot function to send them manually to the server along with my Form's model. Also please note that I have intentionally decided to not use the saveChanges (UpdateUrl) method because of some reasons therefore I need the igTransactions as well and dont want them emptied every time a new row is added.

    Thanks.

Children