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

[Solved] JQuery pop up not working.

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tommy Norman
Top achievements
Rank 1
Tommy Norman asked on 13 Apr 2010, 07:22 PM
We are trying to use the following JQuery code for a modal pop up:

jQuery(document).ready(

function() {

 

jQuery(

"#open").click(showDialog);

 

 

//variable to reference window

 

$myWindow = jQuery(

'#modal');

 

 

//instantiate the dialog

 

$myWindow.dialog({

height: 400,

width: 400,

modal:

true,

 

position:

'center',

 

autoOpen:

false,

 

title:

'Will I Work?',

 

overlay: { opacity: 0.5, background:

'black' }

 

});



However on MVC views that have the Telerik declarations on them (see below), this code will not work.

<% Html.Telerik().StyleSheetRegistrar()

.DefaultGroup(group => group.Add(

"telerik.common.css")

 

.Add(

"telerik.default.min.css"))

 

.Render();

 

%>


Any ideas?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Apr 2010, 08:32 AM
Hello Tommy Norman,

Telerik components load the jquery javascript at the end of the page. I suggest you disable the automatic jquery including and include it by hand within the <head /> tag of your master page:

<%= Html.Telerik().ScriptRegistrar().jQuery(false) %>

Regards,
Atanas Korchev
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
General Discussions
Asked by
Tommy Norman
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or