Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Webdropdown will not select
posted

Hi There

I have a webdropdown that is bound to a sql dataset to populate its items. When the dropdown is opened it will not select the first item in the list. If any other item is selected first then the initial item is reselected it will select OK. Code as follows:

<ig:WebDropDown ID="WebDropDownPrincipalID"
                runat="server" Width="150px" DropDownAnimationType="Linear"
                DropDownContainerHeight="0px" DropDownContainerMaxHeight="0px"
                DropDownContainerWidth="0px" 
                StyleSetName="Trendy"
                onitemsrequested="WebDropDownPrincipalID_ItemsRequested">
                <clientevents focus="wddOpening" />

            </ig:WebDropDown>

 function wddOpening(sender, e) {
         
        sender.loadItems();
       }

 

I have investigated this at length and cannot see what is going on.

 

Any suggestions??

Parents
  • 24671
    Verified Answer
    posted

    Hi Brendan,

    Ok now i see the issue. Thanks for all the info. Please refer to my second post, and set EnableAutoCompleteFirstMatch="false". It will solve it. 

    If you want to use EnableAutoCompleteFirstMatch for this scenario, add these two lines as the last lines in the ItemsRequested server-side handler (after you databind the WebDropDown):

     

       this.WebDropDown1.Items[0].Selected = false;

    this.WebDropDown1.CurrentValue = "";

    Hope this helps. Thanks,

    Angel 

Reply Children