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
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.
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.