In my WebDropDown's dropdown items I have the number 50.
When I type 5 into the WebDropDown's textbox, the 0 is automatically added, but I delete it, making it a 5 again.
Problem is, when I hit my save button, the WebDropDownAmount.CurrentValue is 50.
<ig:WebDropDown ID="WebDropDownAmount" runat="server" Width="255px" DropDownAnimationType="Bounce"EnableMultipleSelection="False" DropDownContainerHeight="0px" DropDownContainerMaxHeight="0px" DropDownContainerWidth="0px" ClientEvents-ValueChanged="CheckChars" EnableDropDownAsChild="True" MultipleSelectionType="Checkbox" PageSize="0" Button-ImageUrl="~/Images/down4.png"></ig:WebDropDown> //Fill Amounts DataSet amounts = new DataSet(); string fileName = "~/Amounts.xml"; amounts.ReadXml(MapPath(fileName));
WebDropDownAmount.DataSource = amounts; WebDropDownAmount.TextField = "value"; WebDropDownAmount.DataBind(); WebDropDownAmount.CurrentValue = ""; for (int i = 0; i < WebDropDownAmount.Items.Count; i++) { WebDropDownAmount.Items[i].HoverCssClass = "comboHover"; WebDropDownAmount.Items[i].ActiveCssClass = "comboActive"; }.comboHover{background-color: #316AC5;color: White;}.comboActive{list-style-type: none;background-color: #316AC5;color: #333333;border: 1px solid #F1F1F1;}
Hi,
What is your scenario, i.e. which properties do you have enabled on the control? For example EnableAutoFiltering, or EnableAutoCompleteFirstMatch? If you can provide some ASPX markup, i will be glad to help.
Thanks,
Angel