listing file names from a folder in radcombobox

3 posts, 1 answers
  1. geetha priya
    geetha priya avatar
    25 posts
    Member since:
    May 2010

    Posted 04 Jun 2010 Link to this post

    hi

    how to list directory files in a radcombobox?

    please help me..
    thanks in advance...
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Jun 2010 Link to this post

    Hi geetha Priya,

    I hope the following code snippet will help you in achieving this.

    C#:
     
        DirectoryInfo di = new DirectoryInfo("E:/Files/Today");  
        FileInfo[] rgFiles = di.GetFiles("*.*");  
        foreach (FileInfo fi in rgFiles)  
        {  
            RadComboBox1.Items.Add(new RadComboBoxItem(fi.Name));  
        } 


    Happy coding :)
    Princy.
  3. geetha priya
    geetha priya avatar
    25 posts
    Member since:
    May 2010

    Posted 04 Jun 2010 Link to this post

    hi!

    it works fine..

    thanks ...
Back to Top