or
| <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%"> |
| <telerik:RadPane ID="LeftPane" runat="server" Width="180px" Height="100%"> |
| <asp:Panel runat="server" ID="PnlButtons"> |
| <asp:Button runat="server" ID="CusInfo" Text="Customer Information" /> |
| <br /> |
| <asp:Button runat="server" ID="CusCC" Text="Credit Card Information" /> |
| <br /> |
| <asp:Button runat="server" ID="CusAddr" Text="Address Information" /> |
| <br /> |
| <asp:Button runat="server" ID="CusContact" Text="Contact Information" /> |
| <br /> |
| <asp:Button runat="server" ID="CusContPrefs" Text="Contact Preferences" /> |
| <br /> |
| <asp:Button runat="server" ID="CusDemo" Text="Demographic Information" /> |
| <br /> |
| <asp:Button runat="server" ID="CusOrders" Text="Order History" /> |
| <br /> |
| </asp:Panel> |
| </telerik:RadPane> |
| <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="None" /> |
| <telerik:RadPane ID="MiddlePane" runat="server" Scrolling="None" Width="400px" Height="100%"> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="400px" LoadingPanelID="LoadingPanel1"> |
| <asp:Panel ID="pnlContent" runat="server"> |
| </asp:Panel> |
| </telerik:RadAjaxPanel> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| Dim newbtn As New Button() |
| newbtn.Text = "Add New!" |
| newbtn.ID = "btn" |
| AddHandler newbtn.Click, AddressOf DynamicClick |
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:scriptmanager id="scriptmanager1" runat="server" /> |
| <telerik:radscriptblock id="radscriptblock1" runat="server"> |
| <script type="text/javascript"> |
| function rcb1_ClientFocus(sender, args) { |
| alert('testing'); |
| } |
| function focusComboBox() { |
| var rcb = $find('rcb1'); |
| rcb.get_inputDomElement().focus(); |
| } |
| </script> |
| </telerik:radscriptblock> |
| <telerik:radcombobox id="rcb1" runat="server" onclientfocus="rcb1_ClientFocus" /> |
| <p><input type="button" value="Test" onclick="focusComboBox();" /></p> |
| <telerik:radajaxmanager id="ram1" runat="server"></telerik:radajaxmanager> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Collections.Generic; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using Telerik.Web.UI; |
| public partial class Test : System.Web.UI.Page { |
| protected void Page_Load(object sender, EventArgs e) { |
| if (!IsPostBack) { |
| //scriptmanager1.SetFocus(rcb1.ClientID + "_Input"); |
| //RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("focusComboBox();"); |
| } |
| } |
| protected void Page_Prerender(object sender, EventArgs e) { |
| if (!IsPostBack) { |
| //scriptmanager1.SetFocus(rcb1.ClientID + "_Input"); |
| //RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("focusComboBox();"); |
| } |
| } |
| } |