or
<div id="ctl00_cphMain_fv_reSupervisorNotes" class="RadEditor Default reWrapper" style="height: auto; width: 100%; min-height: 100px; min-width: 856px;"><div id="ctl00_cphMain_fv_reSupervisorNotes_dialogOpener" style="display:none;"><div class="reRibbonBarWrapper"></div><table id="ctl00_cphMain_fv_reSupervisorNotesWrapper" cellspacing="0" cellpadding="0" style="table-layout:auto;width:100%;height:100px;"><div id="ctl00_cphMain_fv_reSupervisorNotes_InsertLink" class="reInsertLinkWrapper" style="display: none;"><table class="reControlsLayout" cellspacing="0" cellpadding="0" border="0"></div><input id="ctl00_cphMain_fv_reSupervisorNotes_ClientState" type="hidden" name="ctl00_cphMain_fv_reSupervisorNotes_ClientState" autocomplete="off"></div><telerik:RadEditor ID="reSupervisorNotes" runat="server" EditModes="Design" ContentAreaMode="Div" NewLineMode="P" ToolsFile="~/App_Data/RadEditor/Tools.xml" ToolbarMode="ShowOnFocus" AutoResizeHeight="true" Height="100px" Width="100%" Content="<%# Bind('SupervisorNotes') %>" OnClientLoad="RadEditorOnClientLoad"> <Languages> <telerik:SpellCheckerLanguage Code="en-GB" Title="English UK" /> </Languages></telerik:RadEditor><?xml version="1.0" encoding="utf-8" ?><root> <modules> <module name="RadEditorHtmlInspector" enabled="false" visible="false" dockingzone="bottom" /> <module name="RadEditorNodeInspector" enabled="false" visible="false" dockingzone="bottom" /> <module name="RadEditorDomInspector" enabled="false" visible="false" dockingzone="bottom" /> <module name="RadEditorStatistics" enabled="false" visible="false" dockingzone="bottom" /> </modules> <tools> <tool name="Bold" shortcut="CTRL+B"/> <tool name="Italic" shortcut="CTRL+I"/> <tool name="Underline" shortcut="CTRL+U"/> <tool separator="true"/> <tool name="ForeColor"/> <tool name="BackColor"/> <tool separator="true"/> <tool name="JustifyLeft"/> <tool name="JustifyCenter"/> <tool name="JustifyRight"/> <tool separator="true"/> <tool name="Indent"/> <tool name="Outdent"/> <tool separator="true"/> <tool name="InsertOrderedList"/> <tool name="InsertUnorderedList"/> <tool separator="true"/> <tool name="InsertLink" shortcut="CTRL+K"/> <tool name="InsertSymbol"/> </tools> <tools name="DropdownToolbar"> <tool name="FontName"/> <tool name="RealFontSize" text="Size"/> </tools> <tools enabled="true"> <tool name="Undo" shortcut="CTRL+Z"/> <tool name="Redo" shortcut="CTRL+Y"/> <tool separator="true"/> <tool name="Cut" shortcut="CTRL+X"/> <tool name="Copy" shortcut="CTRL+C"/> <tool name="Paste" shortcut="CTRL+V"/> <tool separator="true"/> <tool name="Print" shortcut="CTRL+P"/> <tool name="FindAndReplace" shortcut="CTRL+F"/> <tool name="SelectAll" shortcut="CTRL+A"/> <tool separator="true"/> <tool name="AjaxSpellCheck" shortcut="F7"/> <tool name="ToggleScreenMode" shortcut="F11"/> </tools></root>
Hello,
I want to check Remove of RadAsyncUpload is clicked or not to set textbox(ruFakeInput) width according to that condition.
My script is
$telerik.$(document).ready(function() { setTimeout(function() { var btnRemove = document.getElementById("<%= btnRomovePhoto.ClientID %>"); if (btnRemove) { $('input.ruFakeInput').css("width", "120px"); } else { $('input.ruFakeInput').css("width", "191px"); } //here i check .ruRemove is clicked or not and set 'ruFakeInput' width }, 200); });
i try this way
$telerik.$("button [name=RowRemove]").click(function() { alert('click'); });
and
$telerik.$(".RadUpload .ruRemove").click(function() {alert('click');//here set $('input.ruFakeInput').css("width", "120px");
});<body> <!-- this is in the page template ascx vv--> <form id="frmMain" method="post" runat="server"> <!-- Henry thinks Telerik added this above ^^--> <div id="pagemiddle">...<body> <!-- this is in the page template ascx--> <form name="frmMain" method="post" action="login.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="frmMain"><div><input type="hidden" name="Header_ScriptMgr_TSM" id="Header_ScriptMgr_TSM" value="" /><input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" /><input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /><input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="..." /></div><script type="text/javascript">//<![CDATA[var theForm = document.forms['frmMain'];if (!theForm) { theForm = document.frmMain;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}//]]></script><script src="/UnifiedLogin/WebResource.axd?d=Cr6NY1haBII3CUWgTf-vRxkAVYzK1FJ6XORbJp5zHXYb1faJ2WnIXBUQYE-i4nGMszzp_Bd8NNpxf0uVdI32lDKWS0A1&t=635019945069635093" type="text/javascript"></script><link class='Telerik_stylesheet' type='text/css' rel='stylesheet' href='/UnifiedLogin/WebResource.axd?d=wu2-nH7iwSqT0TgvbyKgs_V6_TYA07BnX7YMX1qIIJuR4HyrpazOmoyBpnzlHOjhD1V1ffDT6dYFcYuP8e6q5HEg7UksZaSHMz-hLiqrRrp70O690UMQGVfLo2BOoWglTxXwoQ2&t=635088861486377646'></link><link class='Telerik_stylesheet' type='text/css' rel='stylesheet' href='/UnifiedLogin/WebResource.axd?d=GQ8da8vrWIHNQT0th0xfR3MyDFSTWwp_KKoQ9v7jpSqtcaJ8oN5X4iiDUx0DBfKjb2McbL21Oipj5GiIi_lljQ7uCEMc1-03RZQSZQFMw_D62MwFQkNAVXtdr7eQ0tLQOVOZYuOuYyxf08jSv92AeO9X58Q1&t=635088861486377646'></link><script src="/UnifiedLogin/WebResource.axd?d=SNhGNua5bytowQD_ES8ruTO4SCXXbtwK-lJPxXcl8mOmp64T4XpO5IObsf1rP-ugdukaf6Id84UYZkzqgspHp55pLaY1&t=635019945069635093" type="text/javascript"></script><script src="/UnifiedLogin/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=Header_ScriptMgr_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ab4491a8b-c094-46c4-848c-d2a016749dfa%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.1.417.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ab193e46e-1615-44ae-93b4-e80e222e7ddb%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a490a9d4e%3abd8f85e4" type="text/javascript"></script><script type="text/javascript">//<![CDATA[if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');//]]></script><script src="/UnifiedLogin/WebResource.axd?d=7qErcjeF3n7l-8Wtuwpfpl7dhaTO2Ezy-juh8r8wV2DMMv8roIP3UK5joLMFD8KoeAp0921xSW-aYXt5_rjRc2aMox41&t=635019945069635093" type="text/javascript"></script><script type="text/javascript">//<![CDATA[function WebForm_OnSubmit() {if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;return true;}//]]></script><div> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="..." /></div> <!-- Henry thinks Telerik added this above ^^--> <div id="pagemiddle"><link class='Telerik_stylesheet' type='text/css' rel='stylesheet' href='/UnifiedLogin/WebResource.axd?d=...'></link><link class='Telerik_stylesheet' type='text/css' rel='stylesheet' href='/UnifiedLogin/WebResource.axd?d=...'></link>