values in Listbox

2 posts, 0 answers
  1. Anjali
    Anjali avatar
    101 posts
    Member since:
    Dec 2010

    Posted 09 May 2011 Link to this post

    Hi All,

      I have two Rad listboxes on my web page. I can move the items from one list box. when I transfer the items from lefts side listbox to right side one, the value from left listbox are gone to the right listbox so everthing is working as I want it to be. when I save the listbox with the selected value and display the listbox again after running the web site again, the values that I selected are shown on the right side, but the same values are also shown on the left side. Is their any way I can exclude the values that are on the right side of the listbox not to be displayed on the left side of the listbox.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 May 2011 Link to this post

    Hello Nitu,

    I am not quite sure about the way that you bind the ListBox. The issue is because the transfered items and not actually deleted from the DB. So it is showing the same data after refreshing.

    RadListBox supports automatic database updates.For that the listbox must be bound to a declarative DataSource which has its UpdateCommand and/or DeleteCommand configured.
    If this is your scenario, then set the TransferMode as Move . When an item is moved then also the deletion takes place automatically.
    Check out the following help article for more on this.
    Automatic Database Updates.

    Another suggestion is to delete the item explicitly on moving the Item.

Back to Top