I have a RadGrid that is bound to a ObservableCollection<Customer>. Users can click the RadGrid rows and create an ExpressionColumn using ExpressionEditor. I set ExpressionEditor.Item like:
RadExpressionEditor expressionEditor =
new
RadExpressionEditor();
expressionEditor.Item =
this
.myRadGrid.SelectedItem;
Users can create an expression like 'Customer.BankBalance + 100' and it gets added to the RadGrid:
private
GridViewExpressionColumn expressionColumn =
new
GridViewExpressionColumn();
this
.expressionColumn.Expression = expressionEditor.Expression;
this
.expressionColumn.Header =
"Test"
;
if
(!
this
.myRadGrid.Columns.Contains(
this
.expressionColumn))
{
this
.myRadGrid.Columns.Add(
this
.expressionColumn);
}
How can I now use the newly created "Test" expression column in another ExpressionColumn by repeating the process the user has just done? So they would select a row but the "Test" column is now available to use in the ExpressionEditor and they could do an expression like "Test + 100".