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: LiveDropDownList & Adding Items after Databind |
s_molam From: London, United Kingdom Posts: 9 Member Since: 06/08/05 |
posted June 9, 2005 6:43 AM Hi I am not sure if this is desired behaviour or if this is a bug but anyway. I have 2 Dropdownlists the the first dropdown updates what appears in the second. Now after I change the selection of DropDown1 I then ReBind the data of dropdown2 the selectedIndex doesn't reset back to 0 so that the first item in the list is now selected, it reselects the item of the same index as before the callback. And just as weird is if I am doing the first bind and then insert an item to the DropDownList at index 0 when the page is displayed the SelectedIndex is equal to 1. I hope that all makes sense. I found a way around it by doing a SelectedIndex=0 after doing the Bind as a work around. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 10, 2005 4:26 PM Hi, I was unable to reproduce this. Depending on what I select from 1, 2 gets updated with new items. But each time I select from 1, the SelectedIndex of 2 becomes 0. It may be that internal updates to the LiveDropDownList addressed the problem. If you could, please zip up and send a demonstrative WebForm to support@dart.com, referencing this thread so that I can verify. Thanks, -ken |
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
![]() |