This is a migrated thread and some comments may be shown as answers.

Retrieving Telerik ORM Persistent object in OnDatabound event

0 Answers 21 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 04 Jun 2010, 07:34 AM
Hi

I am executing the following code to retreive the relevant persistent class so I can pouplate the items in my RadComboBox..

However, no data seems to be pulled back.

Please can you point out where I am going wrong.

protected void cboContactDB_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e)  
        {  
            try  
            {  
                Heron.PersistentClasses.Entity loEntity = (Heron.PersistentClasses.Entity)e.Item.DataItem;  
                ((Label)e.Item.FindControl("lblID")).Text = loEntity.ENTSID;  
                ((Label)e.Item.FindControl("lblName")).Text = loEntity.ENTSName;  
            }  
            catch (Exception loException)  
            {  
                Heron.App_Code.L.Exception("ContactReminder.ascx.cs: Error! cboContactDB_ItemDataBound.", loException);  
            }  
        } 

Kind Regards

David

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
hkdave95
Top achievements
Rank 2
Share this question
or