This is a migrated thread and some comments may be shown as answers.

RadSpell Window Width

2 Answers 113 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Jillian
Top achievements
Rank 1
Jillian asked on 14 Mar 2012, 07:07 PM
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 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Mar 2012, 02:27 PM
Hello,

You can change the dimensions of the RadWindow spellchecker dialog using the following script:
<telerik:RadSpell ID="RadSpell1" OnClientLoad="OnClientLoad" runat="server" ControlToCheck="TextBox1">
</telerik:RadSpell>
<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);
        });
    }
</script>


All the best,
Rumen
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.
0
Jillian
Top achievements
Rank 1
answered on 16 Mar 2012, 03:32 PM
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>;
        }
Tags
Spell
Asked by
Jillian
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Jillian
Top achievements
Rank 1
Share this question
or