Hide button in radspell dialog box

2 posts, 0 answers
  1. Allen
    Allen avatar
    49 posts
    Member since:
    Oct 2012

    Posted 23 Nov 2012 Link to this post

    Hi
    How can I hide the undobutton in the radspell dialog box. Thanks

    Allen
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Nov 2012 Link to this post

    Hi Allen,

    Try the following code snippet to achieve your scenario.

    ASPX:
    <telerik:RadTextBox ID="RadTextBox1" runat="server"  Text="mispleng" TextMode="MultiLine">
    </telerik:RadTextBox>
    <telerik:RadSpell ID="RadSpell" runat="server" ControlToCheck="RadTextBox1" OnClientCheckStarted="OnClientCheckStarted" />

    JS:
    <script type="text/javascript">
        function OnClientCheckStarted(spell) {
            setTimeout(function () {
                var UndoButton = spell._dialogOpener._dialogContainers.SpellCheckDialog.get_contentFrame().contentWindow.document.getElementById("dialogControl_Undo");
                UndoButton.parentNode.style.display = "none";
            }, 350);
        }
    </script>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top