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

[Solved] RadCombo box Item Selecting

1 Answer 66 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
kks
Top achievements
Rank 1
kks asked on 07 Mar 2010, 07:05 AM
hi telerik,
I am using Radcombo (Version : Q3 2009 SP2 ) as an user control in my program. this user control is a multicolumn autocomplete.
when i am enter a value ( eg: "3") then the event "_ItemsRequested" will work and displays all the records starting with "3". my issue is when i am selecting an item from this drop down using mouse, this record will selected in the combo. but when i am clicking out side the combo, the selected value is changing ( the first record which stating with "3" appears ).
i know that if i make the radcombo box AutoPostBack = "True" then it will be ok. but can you tel me is there any other solution for this with out making AutoPostBack = "True".
find the code for the user control

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ucMulticolumnAutocomplete.ascx.vb" 
    Inherits="UserControl_ucMulticolumnAutocomplete" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<div> 
    <telerik:RadComboBox ID="RadCmbAutoCompleate" runat="server"   
        AllowCustomText="false" AutoPostBack="false" 
        EnableLoadOnDemand="True" Width"100px" MarkFirstMatch="true" Height="300px" 
        HighlightTemplatedItems="true" ShowToggleImage="False" DropDownWidth="400px"   
        ItemRequestTimeout="500" EnableEmbeddedSkins="false"   
        CausesValidation="false" OffsetX="0" ZIndex="16000" > 
        <HeaderTemplate> 
            <table style="width: 400px; text-align: left">  
                <tr> 
                    <td style="width: 100px;">  
                        <%=FirstField%> 
                    </td> 
                    <td style="width:300px;">  
                        <%=SecondField%> 
                    </td> 
                </tr> 
            </table> 
        </HeaderTemplate> 
        <ItemTemplate> 
            <table style="width: 400px; text-align: left">  
                <tr> 
                    <td style="width: 100px;">  
                        <%#DataBinder.Eval(Container.DataItem, FirstField)%> 
                    </td> 
                    <td style="width: 300px;">  
                        <%#DataBinder.Eval(Container.DataItem, SecondField)%> 
                    </td> 
                </tr> 
            </table> 
        </ItemTemplate> 
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </telerik:RadComboBox> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
    ConnectionString="<%$ ConnectionStrings:PCMSConnectionString %>">  
    </asp:SqlDataSource> 
</div> 

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 09 Mar 2010, 12:43 PM
Hi kks,

Please check this troubleshooting article:
RadComboBox selects a different item

Kind regards,
Veskoni
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
kks
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or