or
<telerik:RadToolBar ID="RadToolBar4" runat="server" Width="100.3%" OnClientLoad="clientLoad" Skin="Black" CssClass="SeparatedButtons" onbuttonclick="RadToolBar4_ButtonClick"> <Items> <telerik:RadToolBarButton CommandName="Documents" ID="rbDocuments" runat="server" Text="Documents" Font-Names="Microsoft Sans Serif" Font-Size="Medium"> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" Text="View Account Profile" Font-Size="Medium" CheckOnClick="true" CommandName="ViewAccountProfile"> </telerik:RadToolBarButton> <telerik:RadToolBarDropDown runat="server" Text="Drop down" CssClass="rightAligned" Font-Size="Medium"> <Buttons> <telerik:RadToolBarButton runat="server" Text="Sign Out" Font-Size="Medium" CheckOnClick="true" CommandName="SignOut"> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" Text="Contact Us" Font-Size="Medium" CheckOnClick="true" CommandName="ContactUs"> </telerik:RadToolBarButton> </Buttons> </telerik:RadToolBarDropDown> <telerik:RadToolBarButton runat="server" Text="Sign Out" Font-Size="Medium" CheckOnClick="true" CommandName="SignOut" CssClass="rightAligned"> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" Text="Contact Us" Font-Size="Medium" CheckOnClick="true" CommandName="ContactUs" CssClass="rightAligned"> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" Text="Create Account Profile" Font-Size="Medium" CheckOnClick="true" CommandName="AccountProfile" CssClass="rightAligned"> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar>private void createRadGrid() { //create radgrid RadGrid rg = new RadGrid(); rg.ID = "RadGridView"; //setting the datasource and itemcommand event handler. rg.DataSourceID = "MachineDataSet"; rg.ItemCommand += new GridCommandEventHandler(RadGridView_ItemCommand); rg.Width = 862; rg.CellSpacing = 2; rg.CellPadding = 4; rg.BorderWidth = 3; rg.BackColor = System.Drawing.Color.Transparent; rg.BorderColor = System.Drawing.Color.DarkGray; rg.ForeColor = System.Drawing.Color.Black; rg.ItemStyle.HorizontalAlign = HorizontalAlign.Center; rg.HeaderStyle.HorizontalAlign = HorizontalAlign.Center; rg.BorderStyle = BorderStyle.Ridge; rg.ShowStatusBar = true; rg.AllowPaging = true; rg.PageSize = 5; rg.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric; rg.AutoGenerateColumns = false; rg.MasterTableView.PageSize = 5; rg.MasterTableView.DataKeyNames = new string[] { "ID" }; rg.MasterTableView.ClientDataKeyNames = new string[] { "ID" }; rg.MasterTableView.AutoGenerateColumns = false; rg.ClientSettings.Resizing.AllowColumnResize = true; rg.ClientSettings.Resizing.EnableRealTimeResize = true; rg.ClientSettings.Resizing.ResizeGridOnColumnResize = true; GridBoundColumn boundColumn = new GridBoundColumn(); boundColumn.DataField = "ID"; boundColumn.HeaderText = "ID"; boundColumn.UniqueName = "MachineID"; boundColumn.Visible = false; rg.MasterTableView.Columns.Add(boundColumn); GridBoundColumn boundColumn1 = new GridBoundColumn(); boundColumn1.DataField = "SiteName"; boundColumn1.HeaderText ="Site Name"; boundColumn1.Resizable = true; boundColumn1.ReadOnly = true; rg.MasterTableView.Columns.Add(boundColumn1); GridBoundColumn boundColumn2 = new GridBoundColumn(); boundColumn2.DataField = "Name"; boundColumn2.HeaderText = "Machine Name"; boundColumn2.Resizable = true; boundColumn2.ReadOnly = true; rg.MasterTableView.Columns.Add(boundColumn2); GridBoundColumn boundColumn3 = new GridBoundColumn(); boundColumn3.DataField = "MachineType"; boundColumn3.HeaderText = "Machine Type"; boundColumn3.Resizable = true; boundColumn3.ReadOnly = true; rg.MasterTableView.Columns.Add(boundColumn3); GridBoundColumn boundColumn4 = new GridBoundColumn(); boundColumn4.DataField = "MachineModel"; boundColumn4.HeaderText = "Machine Model"; boundColumn4.Resizable = true; boundColumn4.ReadOnly = true; rg.MasterTableView.Columns.Add(boundColumn4); GridButtonColumn buttonColumn = new GridButtonColumn(); buttonColumn.ButtonType = GridButtonColumnType.PushButton; buttonColumn.CommandName = "AssignNewValues"; buttonColumn.Resizable = true; buttonColumn.Text = "Assign New Values"; rg.MasterTableView.Columns.Add(buttonColumn); PlaceHolder_RadGridView.Controls.Add(rg); }<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.