Hi,
This is not a new issue ,I might be knowing about that but still i am facing that problem- Set a webdropdown enableCustomValue =false. but auto match property to true.
Now as you type any word say 'U' and if 'USA' exist in dropdown's data then it will auto popup and get select right, Now just using backspace delete 'SA' and you have Only 'U' as a text in dropdown.
Now you can easily save this and your database is corrupt. Why it did let me save wrong value which is not supposed to get save.
Regards,
Vivek Mahawar
Hi Viviek,
The allowCustomValue is designed exactly for behavior which you described. It allows to enter and keep any custom value entered in field.
The highlighted item in list while type-in is not "selected" item, but "active" item. That item is picked-up as the first item which has matching text. In order to select that item, application should press enter key, click that item in list by mouse or trigger blur (tab-key or click outside of combo). Of course if allowCustomValue is enabled, then blur will not select item and custom text will be kept.
The functionality of active item can be disabled by enableActiveItem:false.
If your application needs only items defined in list, then you should not enable allowCustomValue.
Hello Viktor,
1. enableActiveItem property does not exist in Current version ie.="Infragistics4.Web.v11.2, Version=11.2.20112.2086. and I dont know for what purpose it will be use.
2.I was talking about the written text in dropdown. EnableCustomValue="False" and i type 'U' then 'USA' auto populate and shows up in dropdown text field.Now i remove 'SA' and save .
See 'U' only is saved in my db which is not suppose to be.
You said that this is correct behaviour of webdropdown ..Are you talking abt that or anything different.
Please suggest.
Vivek / Angel,
I am also experiencing the same issue as Vivek. even with EnableCustomValues = "False" I can manage to edit text in the drop down. Just as Vivek said, you can delete using either backspace or delete key a valid selected value and when you tab off from the drop down control, partially deleted value is still shown in the wdd. Saving that data will corrupt the database or at least will generate DB error.
Any solution has been found how to restrict user from deleting characters from webdropdown text box???
Ratna
hi Vivek,
there is no property name "EnableCustomValue" , it's EnableCustomValues, i suppose that's the issue.
Thanks
Angel
Hi Vivek,
I was confused with location of your post and assumed that you ask about the jquery igCombo widget, but not ASP.NET WebDropDown.
In order to get better help/answer, please send that question within "NetAdvantage for ASP.NET" forums.