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

is it possible to specify the position of the spell check dialog?

1 Answer 54 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 19 Feb 2010, 10:12 PM
Hi,
I am just writing to see if it is possible to specify the original position of the spell check dialog. We have spellchecker in an iframe which is causing an unnecessary scrolling when popup is launched(I guess popup is set up to position itself in the center by default)? We are thinking that if we can specify the absolute position, scrolling will not happen.
Thank you for your help!
Kate

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 23 Feb 2010, 01:00 PM
Hello Kate,

It is possible to move the RadSpell's dialog once it is shown. For this purpose you could use the OnClientLoad event handler:

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadSpell ID="RadSpell1" IsClientID="true" ControlsToCheck="textbox1" OnClientLoad="OnClientLoad"
    runat="server" />
<input type="text" id="textbox1" />
 
<script type="text/javascript">
    function OnClientLoad(spell)
    {
        var wnd = spell.get_dialogOpener()._getDialogContainer("SpellCheckDialog");
        wnd.add_show(function()
        {
            setTimeout(function()
            {
                wnd.moveTo(50, 50)
            }, 0);
        });
    }
</script>
 
</form>


Sincerely yours,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Spell
Asked by
Ram
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or