Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
hello,
First i'm sorry for my weak english.
I need to have an image view(telerik rad list view) and an image list,when user clicks on images of image list,the selected image appears in the picture box.
but i can't access selected item's key to show it from list box.
i have no idea how to access image key
I tried following links :
http://www.telerik.com/help/aspnet-ajax/listview-selecting-items.html[^]
http://www.telerik.com/community/forums/aspnet-ajax/listview/get-selected-value-of-radlistview.aspx[^]
http://www.telerik.com/community/forums/aspnet-ajax/listview/how-get-selecteditem-fileds-such-as-key-id-name-in-itemcommand-event.aspx[^]
 
but i couldn't find any way to access them.
 
this is my code to load image in image list and from image list to image view :
 private void radButtonElement1_Click(object sender, EventArgs e)
        {
 string[] imgs;
            openFileDialog1.ShowDialog();
            imgs = openFileDialog1.FileNames;
            int i = 0;
            foreach (string im in imgs)
            {
            Bitmap bmp = new Bitmap(im);
            imageList1.Images.Add(bmp);
            ListViewDataItem item = new ListViewDataItem();
            item.Image = imageList1.Images[i];
            this.radListView1.Items.Add(item);
            i++;
            }
            radListView1.ItemSize = new Size(100, 100);
            radListView1.AllowArbitraryItemHeight = false;
            radListView1.AllowArbitraryItemWidth = false;
}
thank you.
Posted 22-Apr-13 3:13am
MA_SHA390
Edited 22-Apr-13 5:04am
(no name)105.8K
v4
Comments
CHill60 at 22-Apr-13 9:04am
   
Use the Improve question link to add detail to your question - for example the code you have tried so far, or the reason why you can't access the selected item's key

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 22 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100