Hello Kim Bouchard,
Thank you for writing.
It is puzzling that you do not have a data item in these event args. Here is how the ListItemDataBoundEventArgs class looks like:
ListItemDataBoundEventArgs : EventArgs
RadListDataItem newItem =
.newItem = newItem;
Also we have unit tests that change properties of the bound RadListDataItem.
If you manage to set the Text
property however, you will encounter an exception. We initially thought of forbidding the users to set the text for data bound items since the text is being provided by the binding logic, and if users want to change how the data item is visually presented they can use the VisualItemFormatting event in which they can set the text to the visual item instead. Later, however, we decided that users should also be able to modify data items in the data bound item as well so this functionality will be available in the final release.
Here is how the ItemDataBound event handler looks like taken directly from our unit tests:
counter = 0;
.testListBox.ItemDataBound += (sender, args) =>
args.NewItem.Text = counter++.ToString();
Please write again if you have other questions.
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.