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

dialog position

3 Answers 42 Views
Spell
This is a migrated thread and some comments may be shown as answers.
debbie f
Top achievements
Rank 1
debbie f asked on 01 Jul 2008, 06:21 PM
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.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Jul 2008, 12:31 PM
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
0
debbie f
Top achievements
Rank 1
answered on 03 Jul 2008, 03:08 PM
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.) 
0
Rumen
Telerik team
answered on 04 Jul 2008, 09:11 AM
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
Tags
Spell
Asked by
debbie f
Top achievements
Rank 1
Answers by
Rumen
Telerik team
debbie f
Top achievements
Rank 1
Share this question
or