or
<telerik:RadComboBox ID="cboCust" Runat="server" Width="178px" DropDownWidth="500px" HighlightTemplatedItems="True" EmptyMessage="Select Customer" EnableLoadOnDemand="True" Filter="Contains" Height="250px" MarkFirstMatch="True" AutoPostBack="True"> <HeaderTemplate> <table style="width:415px; text-align:left"> <td style="width:50px;">ID</td> <td style="width:200px;">Name</td> <td style="width:200px;">Address</td> </table> </HeaderTemplate> <ItemTemplate> <table style="width:415px; text-align:left"> <td style="width:50px;"> <%# DataBinder.Eval(Container.DataItem, "ID")%> </td> <td style="width:200px;"> <%# DataBinder.Eval(Container.DataItem, "Name")%> </td> <td style="width:200px;"> <%# DataBinder.Eval(Container.DataItem, "Address")%> </td> </table> </ItemTemplate></telerik:RadComboBox>Protected Sub cboCust_ItemsRequested(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles cboCust.ItemsRequested cSQL = "SELECT * FROM Customer" With cboCust .DataSource = FillDataset(cSQL) .DataTextField = "ID" .DataValueField = "ID" .DataBind() End WithEnd SubProtected Sub btnCheck_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCheck.Click If cboCust.SelectedValue = "" Then lblMsg.Text = "Not item in list" Else lblMsg.Text = "Item in list" End IfEnd Sub
<table> <tr> <td> <telerik:RadListBox ID="countiesRLB" runat="server" DataKeyField="county_name" AllowTransfer="true" TransferToID="selectedcountiesRLB" AllowTransferOnDoubleClick="true" DataSortField="county_name" DataTextField="county_name" DataValueField="county_name" Height="200px" Width="175px" Visible="false" SelectionMode="Multiple" Sort="Ascending" ontransferred="countiesRLB_Transferred" AutoPostBackOnTransfer="true"> <HeaderTemplate> Counties</HeaderTemplate> </telerik:RadListBox> </td> <td> <telerik:RadListBox ID="selectedcountiesRLB" runat="server" Height="200px" Width="150px" Visible="false" SelectionMode="Multiple"> <HeaderTemplate> Selected Counties</HeaderTemplate> </telerik:RadListBox> </td> </tr></table>[ServiceContract] public interface IACT { [OperationContract] RadComboBoxData GetCustomerOrderHistoryTelerik(RadComboBoxContext context); }
[BasicHttpBindingServiceMetadataExchangeEndpoint] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] public class ACT : IACT { public RadComboBoxData GetCustomerOrderHistoryTelerik(RadComboBoxContext context) { //The RadComboBoxData object contains all required information for load on demand: // - the items // - are there more items in case of paging // - status message to be displayed (which is optional) RadComboBoxData result = new RadComboBoxData();
...
<%@ ServiceHost Language="C#" Debug="true" Service="ACT, $SharePoint.Project.AssemblyFullName$" CodeBehind="ACT.svc.cs" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px" AllowCustomText="true" LoadingMessage="Loading, please wait..." EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ..." ItemsPerRequest="10"> <WebServiceSettings Path="~/_layouts/Sample/Services/ACT.svc" Method="GetCustomerOrderHistoryTelerik" /> </telerik:RadComboBox>
<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> </system.serviceModel>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DemoDummyControl.ascx.cs" Inherits="X.DemoDummyControl" %><p>Dummy Control</p><p>To test RadWindow</p><p> <asp:Button runat="server" ID="test" OnClick="Click" /></p><%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true" CodeBehind="demo.aspx.cs" Inherits="X.demo" %><%@ Register Src="~/DemoDummyControl.ascx" TagName="Dummy" TagPrefix="uc" %><asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"><p><uc:DemoDummyControl runat="server" /></p></asp:Content><
CommandItemStyle BorderStyle="None"/>
doesn's seem to work.
Private Sub custVal_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles custVal.ServerValidate args.IsValid = ValidatedConfiguration() End SubPrivate Sub ValidatedConfiguration()' How do I access the updated values here?End Function