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
275
WebDropWown doesn't have selected Value but "CurrentValue" showing last selected value.
posted

Hi,

I am using Infragistics Web version 9.1 and working on "Web Drop Down".

Problem: Web Drop down is editable. user select data from drop down list and we can get the selected value from "CurrentValue" property of WebDropdown in CS file.  Now user select all display data in WebDropdown and press "Delete" keybord button and click on submit button.

In this case, dropdown doesn't showing any value but "CurrentValue" property still showing last selected Value. this is wrong.

My control "HTML" is given below.

<ig:WebDropDown ID="searchDropDown" runat="server"
                                                                    DropDownAnimationType="Linear" EnableAutoFiltering="Client" Height="22px"
                                                                    Width="442px" EnableTheming="False" DropDownAnimationDuration="0"
                                                                    ClientEvents-InputKeyUp="SearchWebDropDownInputKeyEvent"
                                                                    EnablePersistingCustomValues="True">
                                                                    <ClientEvents InputKeyUp="SearchWebDropDownInputKeyEvent" />
                                                                    <Button ImageUrl="~\ig_res\RedPlanet\images\ig_cmboDown1.png"/>
                                                                </ig:WebDropDown>

 

please give me this solution of this problem ASAP. 

 

Thanks & Regard's

Sachin Kumar

Parents
No Data
Reply
  • 24671
    posted

    Hi Sachin,

    This is very strange but I couldn't reproduce it. By the way, what is this event handler used for in your scenario:

    InputKeyUp="SearchWebDropDownInputKeyEvent" 

    Do you use it do do filtering? Because you have EnableAutoFiltering=Client, which gives you filtering capability out of the box, on the client-side. 

    Also keep in mind that when you have EnablePersistingCustomValues=true, an ajax request will be made as soon as the control loses focus, and there is text in the input box that doesn't match any of the items' text  (for example when you select everything and press the delete key, this results in an empty string, which is also considered custom and a new item is created for it). 

    Thanks,

    Angel 

Children