I am having an issue with the webdropdown automatically selecting the first value in this control. I am using version 14.1. As you can tell, it is tied to a data source on the screen. I do not have this issue when displaymode is set to DropDown. When I set it to DropDownList, it automatically selects the first item in the drop down. I am just trying to keep them from typing in the drop down. I don't want them to be able to type in the drop down as it will mess with my code behind. Thanks.
<ig:WebDropDown ID="cmbComplaints" runat="server" Width="225px" EnableClosingDropDownOnSelect="False" ValueField="ID" TextField="ComplaintType" EnableMultipleSelection="True" DataSourceID="DSComplaints" CurrentValue="" StyleSetName="Default" DisplayMode="DropDownList"></ig:WebDropDown>
Bernie
Hello Bernie,
Thank you for contacting Infragistics Support!We are currently looking into this matter and will keep you posted of any available information.Please do not hesitate to contact us with any updates or additional questions regarding this scenario in the meantime.
Best regards,Yana DimitrovaDeveloper Support EngineerInfragistics, Inc.
if you use DisplayMode="DropDownList", you will not be able to set the current value and the first item will display automatically.
So I suggest you to use "DropDown" as DisplayMode and in order to prevent dropdown input to be edited, you can disable it via BLOCKED SCRIPT
$("input.igdd_ValueDisplay").attr("disabled", "disabled") or
$("input.igdd_ValueDisplay").attr("readonly", "true")
Please review the attached sample and let me know if you have additional questions.
thank you for your feedback. If you need any additional assistance regarding this topic feel free to contact me.
Yana,
It worked out great. Thanks for your help!!!
Have you been able to review the attached sample and to resolve the issue?
If you need any additional assistance with this, feel free to contact me.