RadGrid with Batch Editing and Dynamic Group Aggregates Calculation

3 posts, 0 answers
  1. Eyup
    Admin
    Eyup avatar
    3801 posts

    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. Patrick
    Patrick avatar
    3 posts
    Member since:
    Jun 2015

    Posted 18 Mar 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
    Admin
    Eyup avatar
    3801 posts

    Posted 27 Jun 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