dialog position

4 posts, 0 answers
  1. debbie f
    debbie f avatar
    36 posts
    Member since:
    Feb 2006

    Posted 01 Jul 2008 Link to this post

    I've got a page that has dynamically created html controls with several needing spellcheck.  I've implemented the solution with a radspell control with no buttontype and the following javascript is called:

    <telerik:radspell id="RadSpell1" runat="server" buttontype="none" />

    function spellCheckMe(obj) {
        var spell = $find('<%= RadSpell1.ClientID %>');
        spell.set_controlToCheck(obj); 
        spell.startSpellCheck();
    }
    <a title='Spell Check' href="javascript:spellCheckMe('JobDescriptionEdit');" class="spell_Ext spLinkImg">Spell Check </a>
    In Safari & FF, the dialog is centered on the page.  However in IE, the dialog tries to position from the firing button.  Is there some client script that I can use so that IE centers the dialog?  I didn't see it in the online help, but maybe it exists?  If the button that is invoking the spell editor is close to the bottom of viewing area, the spell dialog isn't fully shown.

  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 03 Jul 2008 Link to this post

    Hi Debbie,

    I tried to reproduce the problem, but without success. You can see my test in the attached video.

    Is it possible to open a support ticket and send a sample running example that demonstrates the problem? I will examine it and try to provide a solution.

    Kind regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. debbie f
    debbie f avatar
    36 posts
    Member since:
    Feb 2006

    Posted 03 Jul 2008 Link to this post

    I'll submit a support ticket with a website username/pwd so you can see it in action.  (I'm hoping not to have to create a test project b/c of a tight timeline.) 
  5. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 04 Jul 2008 Link to this post

    Hello debbie f,

    I examined the provided live url and found that your page has the following DOCTYPE:

    <!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.0 Transitional//EN" >

    To fix the dialog positioning problem you should replace your current page DOCTYPE with this one:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    because RadControls for ASP.NET AJAX are designed, developed and intended to work under standards-compliance mode (in order to make use of all browser, css, javascript, etc. improvements that were introduced with xhtml 1.0 and xhtml 1.1). That is why the red highlighted DOCTYPE above is needed for the proper dialog positioning.



    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top