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

Disabling item in RadListBox - onClientTransferred not firing correctly?

1 Answer 136 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 11 Jul 2011, 09:30 PM
Hello,

Hopefully, someone will be able to point me in the right direction - as I'm fairly new to using Telerik UI... (all actions below are client-side).

I have set up 2 listboxes with only "TransferFrom" and "TransferAllFrom" enabled on RadListBox1 and "Delete" on RadListBox2.
RadListBox1 "TransferMode" is set to COPY, so I have told it to disable any items in RadListBox1 if they are present in RadListBox2.

It works great, but a problem arises with onClientTansferred Event when you do the following:
1. Transfer All items in RadListBox1 to RadListBox2 (all items in RadListBox1 are now disabled with "set_enabled(false)")
2. Delete one of the items in RadListBox2 (the item is then removed from RadListBox2, and enabled again in RadListBox1 with "set_enabled(true)")
3. Click the "All to Right" button...

This wierdly, doesn't seem to fire the onClientTransferred or onClientTransferring Events? But will successfully copy the items over!
If you click the individual "Transfer From" button, it fires both Events OK. Dragging the item over also fires the Client Transfer events successfully.

In my limited experience with this - it would appear that by disabling one or more items in RadListBox1, causes issues with the onClientTransferred Event handler when trying to Transfer All items to the right.

If I get rid of any "disable" code (e.g. "set_enabled(false)" - it works a treat!

Any thoughts or ideas folks?

Cheers for any help/advice,

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 14 Jul 2011, 10:15 AM
Hi Matt,

We tried the reproduce the issue you described, but without much success. Please find attached our test project.
Does it work at your side? IF yes - could you please modify it so we can see the exact problem locally?

Greetings,
Peter Filipov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ListBox
Asked by
Matt
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or