Show images from directory in Radlistview

4 posts, 0 answers
  1. David De Backer
    David De Backer avatar
    8 posts
    Member since:
    Mar 2010

    Posted 24 Aug 2010 Link to this post

    Hello,
    I got a question regarding images and the radlistview. I'd like to show images from a directory into a Radlistview.  I have a directory with the following images: a1.jpg, a2.jpg, b1.jpg, b2.jpg, b3.jpg. On pageload I'd like to get the files containing the letter 'b' (in this case 3 files), and show them in my radlistview.
    My question: how can I get these pictures and show them in my listview on pageload?
    Thanks for your help.
    David  
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 25 Aug 2010 Link to this post

    Hello David,

    You may use System.IO Directory's and File objects static methods for retrieve appropriate files and to populate RadListView and the nested RadBinaryImages. This online demo illustrates a similar approach.

    Best wishes,
    Rosen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Troy Clemons
    Troy Clemons avatar
    69 posts
    Member since:
    Apr 2010

    Posted 04 Nov 2010 Link to this post

    i tried your demo, but when ever it is converted to use in my web application i get an error Photo is not defined.

    Any help Please
  5. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 10 Nov 2010 Link to this post

    Hello Troy,

    Photo is a custom data item class that is used to populate RadListView. It's definition is in source file DataProvider.cs / DataProvider.vb in the demo.

    Veli
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top