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

[Solved] Calculated Columns

2 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scott Rakestraw
Top achievements
Rank 1
Scott Rakestraw asked on 25 Sep 2009, 01:58 PM
Is there any support like the grid view for windows has for setting expressions for columns?  If not is that on the list to be added?

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 26 Sep 2009, 07:59 AM
Hi Scott Rakestraw,

Currently RadeGridView does not support calculated columns. This is definitely in our backlog and shall appear as a feature for future releases.
Meanwhile using IValueConverter for the "calculated" cell should cover some of the scenarios requiring calculations at the UI layer.

Generally you may set a converter to the column DataMemberBinding and perform any calculations in the convert method. The binding path may be set to the business object itself rather than to a specific property. This will allow to perform calculations involving more than one property of the business object.

Actually the missing feature here is just he expression parser so any calculation formulas may be hardcoded design time only.  Adding such support is in our plans for future versions.

All the best,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Scott Rakestraw
Top achievements
Rank 1
answered on 02 Dec 2009, 04:18 PM
I am using the component one dataset which allows me to have a column that uses an expression to calculate it's value.  This is working fine and I can see the values being updated in the data.  The grid does not refresh these values though so unless I do a rebind it does not show the new values.
Tags
GridView
Asked by
Scott Rakestraw
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Scott Rakestraw
Top achievements
Rank 1
Share this question
or