Retrieving Telerik ORM Persistent object in OnDatabound event

1 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 04 Jun 2010 Link to this post

    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
Back to Top