This is a migrated thread and some comments may be shown as answers.

RadListBoxes with AllowTransfer - need to access transfer items server side

1 Answer 85 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 01 Jul 2011, 08:11 PM
I have an aspx page with 2 RadListBox controls.  AllowTransfer = true for RadListBox1.  RadListBox1 gets populated from a database and is also tied to a TextBox used as a filter. 

After transfering items from RadListBox1 to RadListBox2 by clicking the client-side arrow button that gets displayed with RadListBox1 I can see the items on the client side of RadListBox2. but these items are not accessible on the server side. 

I need to get server-side access the new items in RadListbox2 during a postback in order to pass them to another method ... but the server-side items colleciton is empty.

Setting a breakpont I do see a value in RadListBox2.ClientChanges ... and an array like this:

>? RadListBox2.ClientChanges

Count = 2

[0]: {Telerik.Web.UI.ClientOperation<Telerik.Web.UI.RadListBoxItem>}

[1]: {Telerik.Web.UI.ClientOperation<Telerik.Web.UI.RadListBoxItem>}

Is there a way to access these items in a server side postback?  Thanks

1 Answer, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
answered on 01 Jul 2011, 08:46 PM
My mistake.  I was clearing the 2nd RadListBox on page load.
Tags
ListBox
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Share this question
or