I'm trying to implement dual listbox functionality that is nearly identical to the AJAX version of the code sample provided by Telerik:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/dual-listbox-functionality.aspx
However, I need to be able to select multiple rows to move between the two listboxes instead of one at a time as the sample does.
If I set AllowMultiRowSelection = true for both grids and then attempt to move all items form one grid to the other, I get a JavaScript error.:
Line: 4083
Error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: element
The file that is throwing the error appears to be a Microsoft AJAX related scripting file:
// Name: MicrosoftAjax.debug.js
// Assembly: System.Web.Extensions
// Version: 4.0.0.0
// FileVersion: 4.0.30319.225
//-----------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------
// MicrosoftAjax.js
// Microsoft AJAX Framework.
It appears that some part of the AJAX scripting doesn't like it that one of the grids suddenly has no records. I tried implementing buttons that move all items form one grid to the other via the code behind, and the JavaScript error still shows up.
Is there a fix or work around for this? I haven't been able to find one yet :-(