or
<script type="text/javascript"> function spellCheck() { var spell = $find('<%= splContractSpellCheck.ClientID %>'); spell.startSpellCheck(); } </script> <asp:Button ID="btnContractSpellCheck" runat="server" Text="Spell Check" CssClass="buttonStyle" CausesValidation="False" UseSubmitBehavior="False" OnClientClick="javascript: spellCheck()" /> <telerik:RadSpell ID="splContractSpellCheck" runat="server" ControlsToCheck="txtContractSummary,txtContractPurpose,txtContractComments" ButtonType="None" /> <asp:TextBox ID="txtContractSummary" runat="server" TextMode="MultiLine" MaxLength="1000" Width="100%" Height="34px" Enabled="false" /> <asp:TextBox ID="txtContractPurpose" runat="server" TextMode="MultiLine" MaxLength="1000" Width="100%" Height="86px" Enabled="false" /> <asp:TextBox ID="txtContractComments" runat="server" TextMode="MultiLine" MaxLength="1000" Width="100%" Height="52px" Enabled="false" />function onCheckBoxClick(chk) {
debugger;
if (chkText == "Toggle ToolBar") {
var splitter = $find("<%= MainSplitter.ClientID %>");
var pane = splitter.getPaneById("TopPane");
var isCollapseSuccess = pane.collapse();
}
}
</script>
</telerik:RadCodeBlock>
HTML Code:
<telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%"
Orientation="Horizontal">
<telerik:RadPane ID="TopPane" runat="server" Height="100" Scrolling="none" >
<!-- Place the content of the pane here -->
tree.SelectedNodes.Clear();RadTreeNode node = tree.FindNodeByValue(idtema.ToString());if (node != null){ node.Selected = true;}***in my page **** if (!IsPostBack) { GetTelerikWindow( placeholder ); } **** In library ************* public static void GetTelerikWindow( PlaceHolder ph , string WindowId, string windowname, int height, int width, Boolean autosize) { RadWindowManager TWindowMgr = new RadWindowManager(); TWindowMgr.ID="Manager_"+WindowId; TWindowMgr.EnableShadow = true; RadWindow TWindow = new RadWindow(); TWindow.ID=WindowId; TWindow.Title=windowname; TWindow.ShowContentDuringLoad=false ; TWindow.Width=width; TWindow.Height=height; TWindow.VisibleStatusbar=false; TWindow.Modal = true; TWindow.AutoSize = autosize; TWindow.KeepInScreenBounds = true; TWindow.Skin = "WebBlue"; TWindowMgr.Controls.Add(TWindow); ph.Controls.Add(TWindowMgr); }