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

Dropdown list not showing after comma

3 Answers 168 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Arfeen Godil
Top achievements
Rank 1
Arfeen Godil asked on 17 Jul 2009, 06:49 AM
Hi guys,

I'm evaluating the Telerik ASP.NET AJAX library and one issue that's somewhat of a deal breaker is the erratic behavior of the multi column combobox.

The combobox displays the names of people in the following format 'Last name,Firstname'
It works fine until I type a character after the comma. Then I don't get any results in the combobox dropdown.

So when I search for 'SMITH,J' my SQL query brings a few records into the datatable.  But they don't get displayed in the dropdown.

At the bottom of the dropdown, I have displayed the count of records and it shows the correct number there (e.g 3) but no rows appear.

here's some code from my ASPX page
You can view the live page at https://erxrequest.rnahealth.com/newAmos/Customer.aspx
(use the customer search combobox)

<telerik:RadComboBox ID="RadCmb_CustName" AllowCustomText="true" runat="server" Width="289px"
 Height="200px" EmptyMessage="Search for Customer..." EnableLoadOnDemand="true"
 ShowMoreResultsBox="true" EnableVirtualScrolling="true" CloseDropDownOnBlur="true"
 ChangeTextOnKeyBoardNavigation="true" CollapseAnimation-Type="InBack" ExpandAnimation-Type="InBack"
 IsCaseSensitive="true" Filter="Contains" HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"
 OnDataBound="RadCmb_CustName_DataBound" OnItemDataBound="RadCmb_CustName_ItemDataBound"
 LoadingMessage="Loading....." DropDownWidth="600px" OpenDropDownOnLoad="false"
ShowWhileLoading="true" ShowToggleImage="true" ShowDropDownOnTextboxClick="false"
 OnItemsRequested="RadCmb_CustName_ItemsRequested">

 <HeaderTemplate>
  <ul>
<li class="col4">Patient</li>
<li class="col1">Facility</li>
 <li class="col2">Room #</li>
<li class="col3">Date of Borth</li>
<li class="col3">Active/Deactive</li>
</ul>
</HeaderTemplate>
<ItemTemplate>
<ul>
<li class="col4">
<%# DataBinder.Eval(Container.DataItem, "CCUSNM") %></li>
<li class="col1">
 <%# DataBinder.Eval(Container.DataItem, "CNHABR") %></li>
<li class="col2">
  <%# DataBinder.Eval(Container.DataItem, "CRMNO") %></li>
 <li class="col3">
 <%# DataBinder.Eval(Container.DataItem, "CBRTHD") %></li>
<li class="col3">
 <%# DataBinder.Eval(Container.DataItem, "CRCDCD") %></li>
</ul>
</ItemTemplate>


3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Jul 2009, 01:25 PM
Hi Arfeen,

Please make sure that you've set Text property of the items to "LastName,FirstName" when binding the combobox.

Best wishes,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
William
Top achievements
Rank 2
answered on 20 Jan 2012, 05:53 PM
I am experiencing the same behavior.  However, my ResultText is returned as a single string containing a comma like "Lastname,Firstname MI".  I don't have the option to split out and I do not want to use multiple columns, just a single result containing a comma.  I am using an objectdatasource to populate.  Up to the comma, everything is fine but as soon as I type any character after the comma the combobox hangs with "Loading..." and does not filter the results any further.  If I back off one character loading goes away and everything is returned to normal.

<telerik:RadComboBox EnableAutomaticLoadOnDemand="true" 
    DataSourceID="odsEmployeeAssets" 
    DataTextField="ReturnName" DataValueField="AssetId" 
    Filter="Contains" Width="400" ShowDropDownOnTextboxClick="false" 
    AllowCustomText="false" runat="server" />

Our ObjectDatasource returns a custom list of objects with properties
        Property AssetId As Integer
        Property ParentAssetId As Nullable(Of Integer)
        Property ReturnName As String





0
Ivana
Telerik team
answered on 25 Jan 2012, 01:18 PM
Hello William,

Could you paste here a portion of the code that populates the items in the RadComboBox?
It would be even better if you isolate the problem and send us a sample page, so we will be able to test it locally. You could open a support ticket if you want to make attachments.

All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ComboBox
Asked by
Arfeen Godil
Top achievements
Rank 1
Answers by
Yana
Telerik team
William
Top achievements
Rank 2
Ivana
Telerik team
Share this question
or