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
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> |