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

Displayed Image Data Key

1 Answer 46 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 2
Bill asked on 11 Apr 2014, 02:52 AM
is there anyway to determine the Displayed Image Data Key?


1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Apr 2014, 01:15 AM
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.

 
Tags
ImageGallery
Asked by
Bill
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or