or
<telerik:RadComboBox ID="comboBoxBoard" runat="server" Filter="Contains" EmptyMessage="Boarding at" Height="150px" Width="250px" EnableLoadOnDemand="true" ShowMoreResultsBox="true" Font-Bold="true" Font-Size="120%" Font-Italic="false" CssClass="CustomRadComboxCssClass" Skin="50pxOffice2007" EnableEmbeddedSkins="false" ItemRequestTimeout="500" EnableVirtualScrolling="true" MarkFirstMatch="true" AllowCustomText="false" OnClientItemsRequesting="OnClientItemsRequesting_DubBus_Board" > <WebServiceSettings Method="GetStopDataByRouteTest" Path="~/Templates/public/RoutePlannerService/RTPIWebServiceProxy.asmx" /> <HeaderTemplate> <ul> <li class="col1">Value</li> <li class="col2">No</li> <li class="col3">Address</li> <li class="col4">Location</li> <li class="col5">Stage</li> </ul> </HeaderTemplate> <ItemTemplate> <li class="col1"> <%# DataBinder.Eval(Container, "Value")%> <li class="col2"> <%# DataBinder.Eval(Container, "Text")%> <li class="col3"> <%# DataBinder.Eval(Container, "Attributes['Address']")%> <li class="col4"> <%# DataBinder.Eval(Container, "Attributes['Location']")%> <li class="col5"> <%# DataBinder.Eval(Container, "Attributes['Stage']")%> </ItemTemplate></telerik:RadComboBox>[WebMethod] // Cached for 24 hours public RadComboBoxData GetStopDataByRouteTest(RadComboBoxContext context) { //string route = context["Text"].ToString(); //string direction = context["Direction"].ToString(); //string numberOfItems = context["NumberOfItems"].ToString(); string route = "1"; string direction = "I"; string numberOfItems = "0"; try { RadComboBoxData comboData = new RadComboBoxData(); var dtBoarding = GetStopByRouteAndDirection(route, direction); if (dtBoarding.Rows.Count > 0) { int itemsCount; int.TryParse(numberOfItems, out itemsCount); int itemOffset = itemsCount; int endOffset = Math.Min(itemOffset + ITEMS_PER_REQUEST, dtBoarding.Rows.Count); comboData.EndOfItems = endOffset == dtBoarding.Rows.Count; List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(endOffset - itemOffset); foreach (DataRow dataRow in dtBoarding.Rows) { RadComboBoxItemData itemData = new RadComboBoxItemData(); string stopNumber = dataRow["StopNumber"].ToString(); string address = dataRow["Address"].ToString(); string location = dataRow["Location"].ToString(); string stage = (dataRow["StageNumber"].ToString() != string.Empty ? dataRow["StageNumber"].ToString() : ""); itemData.Value = stopNumber; itemData.Text = stopNumber; itemData.Attributes.Add("Address", address); itemData.Attributes.Add("Location", location); itemData.Attributes.Add("Stage", stage); result.Add(itemData); } comboData.Message = GetStatusMessage(endOffset, dtBoarding.Rows.Count); comboData.Items = result.ToArray(); } if (comboData.Items == null) comboData.Items = new RadComboBoxItemData[0]; return comboData; } catch (Exception ex) { return null; } }If Not Session("folderStyle") = Nothing Then Dim link As New HtmlLink() link.Href = Session("folderStyle") link.Attributes.Add("rel", "stylesheet") link.Attributes.Add("type", "text/css") Page.Header.Controls.Add(link) End If<link href="/css/ProdottiManzi/English/stile.css" rel="stylesheet" type="text/css" /><link href="/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3b%7c634859195287498065%3a94dbb91c%3a58260d52%3a267fe04e%3bTelerik.Web.UI%2c+Version%3d2012.2.912.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ait-IT%3a6aabe639-e731-432d-8e00-1a2e36f6eee0%3aed2942d4%3a53e1db5a%3ad126a8ef%3a92753c09%3a91f742eb%3a4f5793d0%3afe53831e%3bTelerik.Web.UI.Skins%2c+Version%3d2012.2.912.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ait-IT%3ab0377b55-749e-4497-8000-b9ed5bce0744%3a6856648a%3af7a27b73%3a261be263" type="text/css" rel="stylesheet" /><title></title></head>protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { LoadPageTabs(intControlID); if (Convert.ToInt32(SessionHandler.UserLevel) > 9) { RadMenu1.Visible = true; ScriptBlock1.Visible = true; RadTabStrip1.OnClientContextMenu = "ShowRadMenu"; RadTabStrip1.OnClientTabSelected = "OnClientTabSelected"; } ConfigureRadEditor(); } } protected void LoadPageTabs(int intPageID) { PageLogic pl = new PageLogic(); DataTable dt = pl.GetPageTabs(0, intPageID, 0); if (dt.Rows.Count > 0) { if (!Page.IsPostBack) { lblPgTabID.Text = dt.Rows[0]["PgTabID"].ToString(); } foreach (DataRow dr in dt.Rows) { try { AddTab(Convert.ToInt32(dr["PgTabID"].ToString()), Convert.ToInt32(dr["ParentID"].ToString()), dr["TabName"].ToString(), Convert.ToInt32(dr["ShowPv"].ToString()), dr["PvContent"].ToString(), dr["PvControl"].ToString(), Convert.ToInt32(dr["PvControlID"].ToString())); } catch (Exception) { throw; } } } else { phAddTab.Visible = true; phTabs.Visible = false; } } private void AddTab(int intPgTabID, int intParentID, string tabName, int intShowPv, string pvContent, string pvControl, int pvControlID) { RadTab ParentTab = new RadTab(); //tab.ID = "tb" + tabName; ParentTab.Text = tabName; ParentTab.Value = intPgTabID.ToString(); ParentTab.Attributes.Add("TabID", intPgTabID.ToString()); RadTabStrip1.Tabs.Add(ParentTab); if (intParentID < 0) { PageLogic pl = new PageLogic(); DataTable dt = pl.GetPageTabs(0, 0, intPgTabID); if (dt.Rows.Count > 0) { int rowcnt = 0; foreach (DataRow dr in dt.Rows) { try { RadTab ChildTab = new RadTab(); ChildTab.Text = dr["TabName"].ToString(); ChildTab.Value = intPgTabID.ToString(); ChildTab.Attributes.Add("TabID", dr["PgTabID"].ToString()); ParentTab.Tabs.Add(ChildTab); if (intShowPv > 0) { AddPageView(ChildTab, Convert.ToInt32(dr["PgTabID"].ToString()), dr["PvContent"].ToString(), dr["PvControl"].ToString(), Convert.ToInt32(dr["PvControlID"].ToString())); } if (rowcnt == 0) { ChildTab.Selected = true; } rowcnt++; } catch (Exception) { throw; } } } } if (intParentID < 1) { if (intShowPv > 0) { AddPageView(ParentTab, intPgTabID, pvContent, pvControl, pvControlID); } } } private void AddPageView(RadTab tab, int intPgTabID, string pvContent, string pvControl, int pvControlID) { Literal litPvContent = new Literal(); litPvContent.Text = pvContent; litPvContent.ID = "litPv" + intPgTabID.ToString(); RadPageView pageView = new RadPageView(); // pageView.ID = tabName; pageView.ID = intPgTabID.ToString(); pageView.Controls.Add(litPvContent); if (pvControl.Length > 0) { UserControl userControl = (UserControl)this.LoadControl(pvControl); ((CustomControl)userControl).ID = "Cntl" + intPgTabID.ToString(); ((CustomControl)userControl).intControlID = pvControlID; ((CustomControl)userControl).intPgMode = 2; pageView.Controls.Add(userControl); } RadMultiPage1.PageViews.Add(pageView); tab.PageViewID = pageView.ID; } private void AddHiddenPageView(RadTab tab) { int intPgTabID = Convert.ToInt32(tab.Value); PageLogic pl = new PageLogic(); DataTable dt = pl.GetPageTabs(intPgTabID, 0, 0); if (dt.Rows.Count > 0) { Literal litPvContent = new Literal(); litPvContent.Text = dt.Rows[0]["pvContent"].ToString(); RadPageView pageView = new RadPageView(); // pageView.ID = tabName; pageView.ID = "pv" + intPgTabID.ToString(); pageView.Controls.Add(litPvContent); //pageView.Visible = false; if (dt.Rows[0]["pvControl"].ToString().Length > 0) { UserControl userControl = (UserControl)this.LoadControl(dt.Rows[0]["pvControl"].ToString()); ((CustomControl)userControl).ID = "Cntl" + intPgTabID.ToString(); ((CustomControl)userControl).intControlID = Convert.ToInt32(dt.Rows[0]["pvControlID"].ToString()); ((CustomControl)userControl).intPgMode = 2; pageView.Controls.Add(userControl); } RadMultiPage1.PageViews.Add(pageView); tab.PageViewID = pageView.ID; } } protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e) { Literal litPvContent = new Literal(); litPvContent.ID = "litPv1" + e.PageView.ID.ToString(); Literal litPvContent1 = (Literal)e.PageView.FindControl("litPv" + e.PageView.ID.ToString()); if (litPvContent1 != null) { litPvContent.Text = litPvContent1.Text; e.PageView.Controls.Add(litPvContent); } else { litPvContent.Text = "PageView Not Found"; } e.PageView.Controls.Add(litPvContent); //string userControlName = e.PageView.ID + "CS.ascx"; //Control userControl = Page.LoadControl(userControlName); //userControl.ID = e.PageView.ID + "_userControl"; //e.PageView.Controls.Add(userControl); } protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { AddHiddenPageView(e.Tab); e.Tab.PageView.Selected = true; }

<telerik:RadToolBar ID="testId" runat="server" Skin="Outlook"> <Items> <telerik:RadToolBarButton runat="server" CommandName="cmd1" ToolTip="cmd" ImageUrl="./cmd.png" /> <telerik:RadToolBarButton IsSeparator="true" /> <telerik:RadToolBarSplitButton CommandName="textoo1" Value="textoo1" Width="100%" OuterCssClass="../cmd.png" > <Buttons> <telerik:RadToolBarButton runat="server" Text="ddddddddddddddddddddddddddddd dddddddddddddddddddddddddddaasassakk kkkkkkkkkkkkk kkkkkkkkkkkkkkkkkk" ></telerik:RadToolBarButton> </Buttons> </telerik:RadToolBarSplitButton> </Items> </telerik:RadToolBar>