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

[Solved] Google Map problem with Telerik MVC Window control

3 Answers 166 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Djordje
Top achievements
Rank 1
Djordje asked on 25 Aug 2011, 10:20 AM
I have problem loading google map inside of Telerik Window MVC extension.
I try with 2 cases and both are failing to load.

Please see attached project

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 26 Aug 2011, 08:28 AM
Hi Djordje,

The JavaScript files required by google maps were not loaded. The Window uses $.ajax to load the data specified by LoadContentFrom. Unfortunately <script> elements present there are not automatically loaded. You need to register those files in the ScriptRegistrar.

 Find attached the updated project.

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Djordje
Top achievements
Rank 1
answered on 26 Aug 2011, 02:26 PM
Thanks for really quick answer, however that partially solved my problem.
Now I have two buttons which should open Telerik Window on click.
Window open's butt Google map content is only partially visible while another part of map stays greyed.
It is interesting, when I open developer toolbar in all three major browsers(Chrome,FF,IE9) whole map became visible,
none of the map is greyed.

Thanks in advance
0
Accepted
Atanas Korchev
Telerik team
answered on 26 Aug 2011, 03:35 PM
Hello Djordje,

Try this:

windowElement.data('tWindow').open().ajaxRequest();

It seems that the chart plugin does not size properly when rendered in a hidden HTML element.

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Window
Asked by
Djordje
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Djordje
Top achievements
Rank 1
Share this question
or