Client-side calculations (reflected in RadGrid's command item) for selected rows

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 01 Apr 2008 Link to this post

    Requirements

    RadControls for ASP .NET AJAX version

    2008.1.415 and later

    .NET version

    2.0 and later

    Visual Studio version

    2005 and later

    Programming language

    Javascript, C#

    Browser support

    all browsers supported by RadControls for ASP .NET AJAX



    PROJECT DESCRIPTION

    The example illustrates how to update a label residing in the command item template of RadGrid purely client-side to reflect the cumulative unit price from the selected records in the table. For this purpose we intercept the OnRowSelected and OnRowDeselected events of the control to increment/decrement the current sum.
    Additionally, the demo is designed to work with plain postbacks from outer button control (persisting the previously calculated value in the command item label). Review the implementation in the project for more info.
Back to Top

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