If you need to have a detail section (or table row if you want to bind a table) for each BlendingModelRow
, then you need to bind the report (or table) directly to the property BlendingModel.dataRow
of a BlendingModel
instance. Then you will be able to refer to the W5_Runtime
of the current row using the expression
How to bind this way? At design time (in the DataSource wizard
) choose as Type the BlendingModelRow
so that you may build expressions easier. At runtime (for example in the constructor after the InitializeComponent
call) set the DataSource
of the generated ObjectDataSource
to the real list of rows. Something like:
var model = new BindingModel();
this.objectDataSource1.DataSource = model.dataRow;
However if that is not the case and you want to bind to the model, and manually index in expressions the BlendingModelRow
s, you will need a simple User Defined Function
that may be used as indexer because the expression engine does not support indexing a list. Something like:
public static object Index(object list, int index)
if(null == list)
and use the function in expression like:
to refer the first item for example.
Hope this information helps.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.