Kirthi Kumar H M
Kirthi Kumar H M

Reputation: 11

summary row for a grid in dojo

I Am looking for a Summary row or a Footer row for a grid where i can display total value of all column ,This footer row should not get scrolled(Virtically) .

Please Correct me if i am wrong .A Summary row for a Grid is not available in Dojo as a Default widget.

I Have achieved the above Summary row feature for Grid By

1) Adding a second grid only with Header Just below the Grid where you want footer row ,as a whole its look like a footer row to a Grid

Problems faced are

1) Column resizing i.e., when you resize any column in Grid 1 the same column in Grid 2(Grid with only Header ) must be resized

The above problem can be solved be capturing a resizing event in Grid 1 and propagating the event to Grid 2.

2) When you resize the column we will get Horizontal scroll Bar For both the Grids

Is there a way to propagate Horizontal scroll event from Grid 1 to Grid 2 so that when u scroll the Grid 1 then simultaneously Grid 2 has to get scrolled or how to get only one scroll for two Grids

Is there any other way to achive above feature for a grid .

Upvotes: 1

Views: 1817

Answers (2)

user2009677
user2009677

Reputation: 442

See demo and detailed reference

DoJo EnhancedGrid has a summary property that can be set, as described in the api documentation

Upvotes: 0

Dennis
Dennis

Reputation: 21

I have achieved this by "stacking" the grids together. A primary data and footer grid. Use CSS to hide the heading of the footer grid. You have to use javascript to update the sums for the footer grid.

Upvotes: 2

Related Questions