or
| <%@ 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> |
RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
RadComboBox1.Items.Add(new RadComboBoxItem(data.Rows[i]["CompanyName"].ToString(), data.Rows[i]["CompanyName"].ToString()));


