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

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    Telerik Admin
    Telerik Admin avatar
    1696 posts
    Member since:
    Oct 2004

    Posted 01 Apr 2008 Link to this post


    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


    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