RadGrid with Batch Editing and Dynamic Group Aggregates Calculation

3 posts, 0 answers
  1. Eyup
    Eyup avatar
    4071 posts

    Posted 10 Nov 2017 Link to this post


    Telerik Product and Version


    Supported Browsers and Platforms

    All browsers supported by Telerik UI for ASP .NET AJAX

    Programming language

    JavaScript, C#


    RadGrid provides built-in group aggregates, which are calculated automatically on server-side:

    When using Batch editing, the changes made by the user are kept on the client before clicking the Save Changes method explicitly. This sample demonstrates how to update the total values dynamically, so the user may see how the changes will affect the aggregated values, even before committing them.

  2. Patrick
    Patrick avatar
    3 posts
    Member since:
    Jun 2015

    Posted 18 Mar 2019 in reply to Eyup Link to this post

    this example doesn't work.  It hangs up on var tableViewEl = $(tableView.get_element());  The error is "Object Expected".  That is all the error says and I got no way how to figure out what is expected to fix it.  Please help correct this.  I need to update the group and master totals when a cell is updated in a batch mode radgrid.
  3. Eyup
    Eyup avatar
    4071 posts

    Posted 27 Jun 2019 Link to this post

    Hi Patrick,

    The sample actually works correctly, but if you copy the script logic, you will also have to include the $ jQuery instance. There are several ways to achieve that:

    You can use the following definition of the RadScriptManager:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />

    Alternatively, you can use var $=$telerik.$; or directly $telerik.$.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.