Displayed Image Data Key

2 posts, 0 answers
  1. Bill
    Bill avatar
    3 posts
    Member since:
    Jun 2012

    Posted 10 Apr 2014 Link to this post

    is there anyway to determine the Displayed Image Data Key?


  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 15 Apr 2014 Link to this post

    Hello Bill,

    If you want to extract the DataKeyValue of the ImageGallery item you can try using the the following code.
    protected void RadImageGallery1_ItemDataBound(object sender, ImageGalleryItemEventArgs e)
            {
                string keyValue = e.ListViewItem.GetDataKeyValue("ID").ToString();
            }

    Regards,
    Pavlina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top