Disabling item in RadListBox - onClientTransferred not firing correctly?

2 posts, 0 answers
  1. Matt
    Matt avatar
    1 posts
    Member since:
    Jul 2011

    Posted 11 Jul 2011 Link to this post


    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,
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 14 Jul 2011 Link to this post

    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?

    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!

  3. DevCraft R3 2016 release webinar banner
Back to Top