RadSpell Window Width

3 posts, 0 answers
  1. Jillian
    Jillian avatar
    16 posts
    Member since:
    Aug 2011

    Posted 14 Mar 2012 Link to this post

    I am using the RadSpell with an MVC web application. The buttons at the side and bottom are cut off in both IE and Firefox.  How can I change the width and height of the rad spell window?

  2. Rumen
    Rumen avatar
    12788 posts

    Posted 16 Mar 2012 Link to this post


    You can change the dimensions of the RadWindow spellchecker dialog using the following script:
    <telerik:RadSpell ID="RadSpell1" OnClientLoad="OnClientLoad" runat="server" ControlToCheck="TextBox1">
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <script type="text/javascript">
        function OnClientLoad(spell) {
            var wnd = spell.get_dialogOpener()._getDialogContainer("SpellCheckDialog");
            wnd.add_show(function () {
                setTimeout(function () {
                    wnd.setSize(500, 500)
                }, 10);

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Telerik UI for ASP.NET Core is out
  4. Jillian
    Jillian avatar
    16 posts
    Member since:
    Aug 2011

    Posted 16 Mar 2012 Link to this post

    Using _getDialogContainer did not work.  My _dialogContainers objec was empty.  What finally did change my window size was this.

    <span style="color: blue;">function</span> OnClientLoad(spell) {
                <span style="color: blue;">var</span> wnd = spell.get_dialogOpener();
                <span style="color: blue;">var</span> wnd = wnd._getDialogDefinition(<span style="color: maroon;">"SpellCheckDialog"</span>);
                wnd.Width = <span style="color: maroon;">"550px"</span>;
                wnd.Height = <span style="color: maroon;">"500px"</span>;
Back to Top