I have a object datasource for a telerik listview and on the onitemcreated method I want to be able to pull out that current object that it is on. can anyone help me? Thanks
I have a object datasource for a telerik listview and on the onitemcreated method
Share
You cannot access the data object in
OnItemCreatedbecause that occurs before any data binding occurs. Instead, you should do you processing inOnItemDataBound. You can use logic like this:Telerik has a page in their documentation specifically addressing the differences between the
ItemCreatedandItemDataBoundevents. Here is a snippet of that: