Wolfgang Sigel
Top achievements
Rank 1
Wolfgang Sigel
asked on 05 Jul 2010, 09:39 AM
Hi, does anybody know whether it is possible to set the VisibleOnPageLOad attribute via client script ? I haven't found an appropriate method in the client side api of the RadWindow.
Thanks very much,
Wolfgang
Thanks very much,
Wolfgang
5 Answers, 1 is accepted
0
Hello Wolfgang,
VisibleOnPageLoad can be set on the server only. If you want to open RadWindow on the client, you should use radopen() / show().
Regards,
Georgi Tunev
the Telerik team
VisibleOnPageLoad can be set on the server only. If you want to open RadWindow on the client, you should use radopen() / show().
Regards,
Georgi Tunev
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
0
Jose
Top achievements
Rank 1
answered on 09 Aug 2010, 04:55 PM
There appears to be a method called "set_visibleOnPageLoad()" in the client side window object that gets passed into OnClientClose. I tried calling it, but it doesn't seem to do anything.
Should I be able to use this method ?
Should I be able to use this method ?
0
Hello Jose,
This setter is automatically created because of the ASP.NET AJAX conventions - all server-side properties should generate client setter / getter. This method however will not work - that is why it is not documented.
RadWindow Methods
RadWindowManager Methods
Kind regards,
Georgi Tunev
the Telerik team
This setter is automatically created because of the ASP.NET AJAX conventions - all server-side properties should generate client setter / getter. This method however will not work - that is why it is not documented.
RadWindow Methods
RadWindowManager Methods
Kind regards,
Georgi Tunev
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
0
Tim Fargo
Top achievements
Rank 1
answered on 05 Oct 2010, 10:01 PM
I have had an issue with "VisibleOnPageLoad" too. I am opening a radwindow via javascript and everything is working just fine. My PM, however, wants a "Loading" image to appear while the page inside of the Rad Window is coming up. After reading through the Telerik site, I know that I need to have the following properties set:
I have tried setting them via javascript using "set_showContentDuringLoad(false)" and "set_visibleOnPageLoad(true)". While debugging, it looks like the properties are set correctly, but there is no effect on the window and I don't see the "Loading" image. When I set VisibleOnPageLoad to true on the server, after opening the Rad Window using my javascript, another Rad Window opens using any server side properties that I had set and ignoring the javascript set properties altogether .
Is there some way to get "ShowContentDuringLoad" and "VisibleOnPageLoad" set properly from my javascript so that the "Loading" image appears on the page in the Rad Window, while at the same time not opening a new "phantom" window?
Thanks,
Derek
- ShowContentDuringLoad="false"
- VisibleOnPageLoad="true"
I have tried setting them via javascript using "set_showContentDuringLoad(false)" and "set_visibleOnPageLoad(true)". While debugging, it looks like the properties are set correctly, but there is no effect on the window and I don't see the "Loading" image. When I set VisibleOnPageLoad to true on the server, after opening the Rad Window using my javascript, another Rad Window opens using any server side properties that I had set and ignoring the javascript set properties altogether .
Is there some way to get "ShowContentDuringLoad" and "VisibleOnPageLoad" set properly from my javascript so that the "Loading" image appears on the page in the Rad Window, while at the same time not opening a new "phantom" window?
Thanks,
Derek
0
Hi Tim,
Basically, for the RadWindow to show a "Loading" image, its ShowContentDuringLoad property must be set to false (there is no need to set ReloadOnShow for that purpose). This property, along with ReloadOnShow, cannot be set from the client.
I am not quite sure what your exact scenario is, but I would suggest to open a support ticket and to send me a sample project that shows your setup and what exactly you try to achieve. I will examine it and do my best to provide you with the most appropriate solution.
Sincerely yours,
Georgi Tunev
the Telerik team
Basically, for the RadWindow to show a "Loading" image, its ShowContentDuringLoad property must be set to false (there is no need to set ReloadOnShow for that purpose). This property, along with ReloadOnShow, cannot be set from the client.
I am not quite sure what your exact scenario is, but I would suggest to open a support ticket and to send me a sample project that shows your setup and what exactly you try to achieve. I will examine it and do my best to provide you with the most appropriate solution.
Sincerely yours,
Georgi Tunev
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