How to remove Exits items in RadListbox

1 posts, 0 answers
    AL MUBARAK avatar
    7 posts
    Member since:
    Oct 2010

    Posted 02 Sep 2014 Link to this post

    Dear All,

       I'm very new guy here. and I had two RadListBoxItems in my aspx page. ListUserCols and ListAllCols.  and while I'm loaded some of the values through DB in ListUserCols for manualy selected items. and then I loaded all of my 50 items in ListAllCols listbox.!

      Now, I need to check from Second Listbox items(ListUserCols) not exist in First Listbox items. Please help me to find out resolved that issue.. I'm searched google in many time. No results are found. Moreover, i didn't select any Items in listbox, all loaded from DB.

    Sample code:

                         DataSet dsAttributes = new DataSet();
                          foreach (DataRow dr in dsAttributes.Tables[0].Rows)
                                lstUserColumns.Items.Add(new RadListBoxItem(dr["Column_Desc"].ToString()));


                            foreach (RadListBoxItem selectedItem in lstUserColumns.Items)
                                //lstAllColumns.Items.Remove(new RadListBoxItem(selectedItem.Value));
                                RadListBoxItem item = lstAllColumns.FindItemByText(selectedItem.Text);
Back to Top