Footer total in Batch Edit Mode

4 posts, 0 answers
  1. Ramey
    Ramey avatar
    19 posts
    Member since:
    Feb 2016

    Posted 24 Feb Link to this post

    Hello,  I was wondering is there a current way that I can implement Client-side calculations in a Grid Footer while but having the Grid set to Batch Edit Mode?  I saw an example on implementing this using a template column as well as set the value of a totals column based on two separate columns calculations but I was wondering about setting the footer to a total.

    Thanks,

    Ramey

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 26 Feb Link to this post

    Hi Ramey,

    Please examine the following article that illustrates similar behavior.


    You can use the same approach to iterate through the cells of a given column and perform the necessary calculations. Then, you can get reference to the footer in that column and update its contents.

    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ramey
    Ramey avatar
    19 posts
    Member since:
    Feb 2016

    Posted 26 Feb in reply to Viktor Tachev Link to this post

    Viktor,

    Would this approach work with just a GridBoundColumn?  I can't use a template column for this field because it would mess up the way the batch editing is working with the batchExtentionsManager.js.  

  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 02 Mar Link to this post

    Hi Ramey,

    The approach would work for GridBoundColumns and GridTemplateColumns. One method you can use to update the footer is to iterate through all cells and calculate the result.

    Another approach is to use the BatchEditClosed handler as in the  and calculate the result based on the current value in the footer and the value entered by the user.

    If you would like the footer to show an aggregate for all items that the RadGrid is bound to you can use the approach described below:



    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top