This is a migrated thread and some comments may be shown as answers.

calculation for Grid Group Footer Item using javascript

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mona
Top achievements
Rank 1
Mona asked on 16 Jan 2012, 07:21 PM
Hi,

I want to calculate total of Quantity column (In Edit Mode) using javascript when I am using group by functionality in Rad Grid. I can do Grand total using javascript but not able to do group by total using javascript as I don't know how to check which group is being edited.

For grand total I am passing Footer value in Java script and deducting it from current value.

Thanks,
Mona

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 19 Jan 2012, 12:43 PM
Hi Mona,

There is not indication of the groups in RadGrid on the client, so it is not supported to perform group-based logic on the client. You could either try a server-side approach or implement your custom logic that traverses the DOM element of the grid and identifies where do the items from a certain group start and end. You could possibly inspect the class names of the <tr> elements inside the grid table.

Kind regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Mona
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or