| Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development | Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
| Author | Forum: PowerWEB LiveControls for ASP.NET Topic: Listbox Error on Data Rebinding |
| Thomas_Szafran From: North Vancouver, BC Canada Posts: 11 Member Since: 06/13/05 |
posted July 27, 2006 8:16 PM Note: Using latest version of DLL 1.5.2.0 How to reproduce: Create a dropdown that binds a listbox based on its selection. You select dropdown item 1 and it binds the listbox with 20 value. Select a value in the listbox such as Item 15. Now change your selection on the dropdown to item 2. The listbox is rebinding with new listitems but only 10 this time. The error occurs here, the listbox tries to automatically select item 15 again after the postback but it does not exist so an error occurs: 'ProgramList' has a SelectedIndex which is invalid because it does not exist in the list of items. Parameter name: value Can provide a simplistic example if required. Anyone else encountered this program and have a work around? |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted July 28, 2006 10:38 AM I tried your steps, and they worked fine for me. You can download my test webform at http://support.dart.com/downloads/support_7068.zip . Can you give this one a try and see if it properly reproduces the steps? |
| Thomas_Szafran From: North Vancouver, BC Canada Posts: 11 Member Since: 06/13/05 |
posted July 28, 2006 2:06 PM Thanks for the prompt reply. The listbox binding is dependent on the dropdowns selection. So say you only had two items in your dropdownlist 1 & 2. If item 1 was selected the listbox is filled with 20 values. If item 2 was selected then the listbox is filled with only 10 values (the differences of items in the listbox is key). (The code shown only populates the listbox with 20 items all the time) So if you select item 1 in the dropdown and then select item 15 in the listbox, followed by selecting item 2 in the dropdown (which re-populates the listbox but with only 10 values) the error occurs because it wants to automatically selected the item 15 you had previously selected. Hope that makes sense, of I can upload a small code sample. |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted July 28, 2006 3:39 PM Yes, that made sense. I made the modification to make the listbox variable (sometimes fill it with 10, sometimes 20) and I still can't reproduce the error (even when I have item 15 selected in the ListBox, and the # of items changes to 10). If you have a example ready I would like to give it a try to see what's different. |
| Thomas_Szafran From: North Vancouver, BC Canada Posts: 11 Member Since: 06/13/05 |
posted July 28, 2006 4:55 PM Error message image: http://www.acreo.ca/dart/error.png VB.NET 2005 Source: http://www.acreo.ca/dart/support_7068_2.zip Please give the source I put up a try. Selected item 2 from the dropdown, then select item 20 in the listbox. Then go back to the dropdown and select item 1. |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted July 31, 2006 10:19 AM I have confirmed this occurs in VS.NET 2005. It appears to work ok in VS.NET 2003, however. I added this to our bug database (#4045) to be addressed in our next release. |
| Thomas_Szafran From: North Vancouver, BC Canada Posts: 11 Member Since: 06/13/05 |
posted July 31, 2006 12:04 PM Thanks. This and issue #3016 are quite major issues, basically preventing the controls from being used in any real world use (with VS.NET 05). Any ideas on a possible release date for these updates? A week? A couple of months? |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted August 1, 2006 10:40 AM Both of these issues are slated to be fixed for the next update. There is no immediate timeline for this release, but you can contact sales@dart.com to discuss alternatives in the meantime (such as a preview beta containing the fixes, etc). |
| Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|