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

Silverlight delays

4 Answers 42 Views
Window
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 09 May 2011, 02:19 PM
Hey, I'm having some troubles with the Telerik Window control. Basically, I have a simple HTML button that executes a Silverlight application when we click on it, and close the application when we click again. This application is a sort of icons menu in which we can open applications (in Telerik windows actually). The problem resides in the fact that once I moved one of these Telerik window, when I'm attempting to open the icons menu again, it takes ages before it pops up in the screen. Is there any solution to this problem ?

Thanks in advance,
Francis.

4 Answers, 1 is accepted

Sort by
0
Francis
Top achievements
Rank 1
answered on 09 May 2011, 02:54 PM
Hi again, so I think I found something interesting. I tried to add an alert call in my JavaScript function, and now when I click on my HTML button, the alert is called first, and then the icons menu appears immediately after I close the alert dialog. So I'm guessing it's something about the focus. I also saw that we can set the focus on an element with JavaScript, I tried some element (html, my silverlight div, etc) but nothing worked yet, any idea ?
0
Marin Bratanov
Telerik team
answered on 11 May 2011, 11:50 AM

Hi Francis,

I have already answered your other thread on a similar matter. If the case is the same please refer to the proposed solution there.

If this is a different scenario what I can suggest at this point, without any more information on your exact setup and logic, is that you wrap the JavaScript code that opens the RadWindows in a setTimeout() function with a timeout set to 0 (or another small amount), since from your second post it looks like giving the browser some time to finish the current thread fixes the problem.

If that is not the case please open a support ticket and send us a simple, fully runnable project that displays this behavior so that we can examine the situation.



Greetings,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Francis
Top achievements
Rank 1
answered on 11 May 2011, 03:16 PM
Hi Marin and thanks for your reply. I tried to enrobe my radopen call into the setTimeout function, but it didn't resolve my problem. After some tests I realised something, but it may not have a direct link with Telerik though. I still think that the Telerik RadWindow, once moved in the screen, take all the control (focus) and even when I close it, my menu takes seconds to display. But when I use an alert right after changing my display property, it displays immediatly. So I'm guessing that I have to give the focus to CSS or something. I'm still not sure about the source of the problem, but thanks for your help anyway !

Francis
0
Francis
Top achievements
Rank 1
answered on 11 May 2011, 04:05 PM
I finally solved my problem.

I was using the css property "display" to hide and show my div, but there was a property just done for that : visibility. By using this, my application take only a fraction of second to pop up and when I hide it, it doesn't close it, like "display" used to do.

Thanks for the support,
Francis
Tags
Window
Asked by
Francis
Top achievements
Rank 1
Answers by
Francis
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or