This is a migrated thread and some comments may be shown as answers.

RadCombox Custom Text being Saved even if Allowcustomtext ="false"

1 Answer 162 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Aman
Top achievements
Rank 1
Aman asked on 11 Jun 2015, 03:17 PM

Hi Guys,

 I have a strange issue where the radcombobox allows the user to enter text and search data, also this data which he entered is allowed to save.

 

<telerik:radcombobox id="rdChangeOwner" skin="Web20" cssclass="RadComboBoxDropDownrcbScroll"
dropdowncssclass="RadComboBoxDropDownrcbScroll" runat="server" font-names="calibri"
font-size="11pt" width="230px" allowcustomtext="false" height="180px" enableloadondemand="True"
showmoreresultsbox="true" enablevirtualscrolling="true" emptymessage="Please Select..."
radcomboboximageposition="Right" zindex="10000002" onitemsrequested="ddlChangeOwnerItemsRequested"
causesvalidation="true" highlighttemplateditems="true" onclientblur="rdChangeOwnerBlur">
</telerik:radcombobox>

 

Initial Value of DropDown is "Asif Mohammed"

Looking for a Employee in picker and entered Asif


Didn’t not select the populated value(Asif Mohammed), just left the entered text as "Asif".

Asif is not there in the list, but "Asif Mohammed" is available, but it allowed me to save Asif into DB and hence got me error because internally it was not able to resolve.

 

Please help in getting a solution for this Issue.

Thanks and Regards,

Mohammed Asif Mtext

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 16 Jun 2015, 11:24 AM
Hello Mohammed,

The described behavior is expected, because when the LoadOnDemand feature of the RadComboBox is enabled, the AllowCustomText functionality is automatically enabled. In order to achieve the desired funcitonality, I would suggest you to follow the approach, demonstrated in the documentation article below:

http://docs.telerik.com/devtools/aspnet-ajax/controls/combobox/how-to/ensure-the-selection-of-existing-items-with-allowcustomtext-


Regards,
Nencho
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ComboBox
Asked by
Aman
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or