RadGrid with Batch Editing and Dynamic Group Aggregates Calculation

Thread is closed for posting
3 posts, 0 answers
  1. 4513861F-C564-42D2-BC9F-5FAED19E993E
    4513861F-C564-42D2-BC9F-5FAED19E993E avatar
    4090 posts
    Member since:
    Apr 2022

    Posted 10 Nov 2017 Link to this post

    Requirements


    Telerik Product and Version

    3.5+

    Supported Browsers and Platforms

    All browsers supported by Telerik UI for ASP .NET AJAX

    Programming language

    JavaScript, C#

    PROJECT DESCRIPTION

    RadGrid provides built-in group aggregates, which are calculated automatically on server-side:
    http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/group-footers/defaultcs.aspx

    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. 9547C284-D274-4936-971A-29B4CA1BE6BF
    9547C284-D274-4936-971A-29B4CA1BE6BF avatar
    3 posts
    Member since:
    Jun 2015

    Posted 18 Mar 2019 in reply to 4513861F-C564-42D2-BC9F-5FAED19E993E 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. 4513861F-C564-42D2-BC9F-5FAED19E993E
    4513861F-C564-42D2-BC9F-5FAED19E993E avatar
    4090 posts
    Member since:
    Apr 2022

    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">
        <Scripts>
            <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" />
        </Scripts>
    </telerik:RadScriptManager>

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

    Regards,
    Eyup
    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.