This is a migrated thread and some comments may be shown as answers.
Transferring remove items
6 Answers 73 Views
This is a migrated thread and some comments may be shown as answers.
Michael Arocho
Top achievements
Rank 2
Michael Arocho asked on 15 Sep 2009, 02:41 PM
Hi,

I have a situation where i have 2 listboxes with transfer enabled.  In one of the listboxes i have an ItemDatabound handler where in a certain condition the item is in the listbox but disabled.  When i use the transfer all button it will transfer everything including the disabled items.  I tried code in handling the Transferring that would remove the items from the args.Items but it tells me it cant because its a fixed size collection.

Is there anyway at the transferring handler i can remove the specific items i dont want transferrable while still transferring the rest?

6 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 15 Sep 2009, 08:58 PM
Perhaps if you go through your list of items in the first listbox and delete the items you want to delete and then go through a second time and transfer the remaining ones over? Just a quick fix idea :)
0
Michael Arocho
Top achievements
Rank 2
answered on 15 Sep 2009, 09:10 PM
I dont want to delete them, i just want them to not transfer.

I have code setup to disable certain items in the listbox.  So when i hit the transfer all button i want only the enabled items to transfer while leaving the disabled items in the initial listbox.
0
Schlurk
Top achievements
Rank 2
answered on 15 Sep 2009, 09:57 PM
Sorry for misunderstanding. You could, even though it might not be the most efficient way, transfer each item separately. This way you could cycle through the list of items, if it is enabled then transfer it - if not leave it.
0
Genady Sergeev
Telerik team
answered on 16 Sep 2009, 07:17 AM
Hi guys,

I am happy to announce that the bug has already been fixed for the latest internal build. You are no longer able to transfer disabled items with the transfer button nor with the transfer all one. More information on how to obtain the latest internal build can be found here.

Best wishes,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael Arocho
Top achievements
Rank 2
answered on 17 Sep 2009, 12:14 PM
Is there any way to get a tested hotfix with this bug fixed in it?
0
Genady Sergeev
Telerik team
answered on 17 Sep 2009, 12:57 PM
Hi Michael Arocho,

Just download the latest internal build. Instructions on how to do it can be found in my previous post. Apart from the latest internal, there is no official way to get to the hotfix. However, we have tested the fixed issue multiple times,. Therefoer the latest internal, even not being official service pack, should do the job.

Best wishes,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Asked by
Michael Arocho
Top achievements
Rank 2
Answers by
Schlurk
Top achievements
Rank 2
Michael Arocho
Top achievements
Rank 2
Genady Sergeev
Telerik team
Share this question
or