input an XML to rad list box

4 posts, 0 answers
  1. Arian
    Arian avatar
    5 posts
    Member since:
    May 2011

    Posted 28 Aug 2011 Link to this post

    hi.
    thank you for your help.
     i wonder to ask about a way to read data from an XML file and insert them to a rad list box.
    my xml structure is like this:
    <Title>
        <Images>
            <Image> 1.jpg</Image>
            <text>something</text>
         <Images>
        .
         .
           .
    <Title>
    i want to load value of <image> tag into image url propertie and value of <text> tag to text propertie of each item in radlistbox.

  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 29 Aug 2011 Link to this post

    Hi Arian,

    Please refer to the following demo showing how to populate the RadListBox from XML file.

    All the best,
    Dimitar Terziev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Arian
    Arian avatar
    5 posts
    Member since:
    May 2011

    Posted 29 Aug 2011 Link to this post

    hi Dimitar . thank you for your answer.but actually i did it before. but this sample is not responding in this case....
    i cant change the structure of XML and also rad list box couldn't read my file...,  
    any other suggestion?
  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 31 Aug 2011 Link to this post

    Hi Arian,

    In case the structure of the xml files is not the one supported by the RadListBox , you should manually parse the XML file, create the RadListBox Items and assign the corresponding value to them.

    All the best,
    Dimitar Terziev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top