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

2 posts, 0 answers
  1. Lion
    Lion avatar
    23 posts
    Member since:
    Aug 2012

    Posted 19 Feb 2010 Link to this post

    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
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 23 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top