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
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
Thanks Angel.
But that was not my question. I am writing my question again.
My Question: I am using infragistics "WebDropDown" control. This control is editable so that user can write anything in this control.
Step 1: I choose a value from "WebDropDown" control.
Step 2: Click on "Button" to check the "CurrentValue" of "WebDropDown" control at server side. Now the CurrentValue property of "WebDropDown" control has the selected Value. and it is correct.
Step 3: Now i click in "WebDropDown" control.
Step 4: Press "Ctrl + A" to select "WebDropDown" control value.
Step 5: Press "Delete" keyboard button.
Step 6: Selected "WebDropDown" control value will be deleted at client side but if we check "CurrentValue" of "WebDropDown" control at server side. it has the previous selected value.
i.e. "WebDropDown" control value delete only at client side but at server side it is not deleted. and it is wrong.
Now i think, you can better understand of this problem. please give me the solution of this problem ASAP because it is already too delay.
Thanks