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

Aggregate functions between rows or columns

3 Answers 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ingólfur
Top achievements
Rank 1
Ingólfur asked on 29 Apr 2013, 12:04 PM
In some gridviews I need to be able to show variance between rows and/or columns as percentage or delta change.

Is there anything in Telerik controls that support anything like this. My one solution is just to calculate it outside and add new items to the collection that represent these aggregate values. Are there any simpler or better solutions available?

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 30 Apr 2013, 10:18 AM
Hello,
Indeed the best solution is to calculate those outside (e.g. in your ViewModel) and use RadGridView just to represent the values.
Generally it is not recommended to perform calculations at the UI level.


Regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ingólfur
Top achievements
Rank 1
answered on 30 Apr 2013, 10:43 AM
OK a question related to this.

With a quick look it seems styling is mostly done at a column level, can I style GridView by rows?
0
Pavel Pavlov
Telerik team
answered on 30 Apr 2013, 11:02 AM
Hello,

Yes , you can do using RowStyleSelectors.
Greetings,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Ingólfur
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Ingólfur
Top achievements
Rank 1
Share this question
or