10 Answers, 1 is accepted
Try the following approach for setting custom text for status bar of radwindow.
Server Error in '/RadWindowStatusBar' Application.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
What is wrong?
I prepare in c#:
and I want to have statusbar with this text above.
How is the best way to achieve this?
Something like this:
Hope this helps.
Is the way to do this without hidden field and call set_status in Page_Load an then pass custom value?
There are many different ways to skin this particular cat.
For your convenience I have prepared a simple project that demonstrates a possible solution without using HiddenField.
I am not quite sure what are the sequence of the steps that you take in order to change the status text, but please note the following scenario :
You open the window(by using radopen() or oWindow.show()) for the first time (or the ReloadOnShow is set to true), the content page(that is loaded inside the RadWindow) is from the same domain and the content page contains text between its <title> tags. In this case the following code does not change the status text of the newly opened RadWindow.
|var oWindow = $find("<%= RadWindow1.ClientID %>");|
This is because of that the RadWindow control gets the value between the <title> tag of the content page(after it is loaded) and shows it as a status text. You can avoid this behavior by calling the set_status function in the OnClientPageLoad event of the RadWindow(implemented in the attached demo).
I hope this helps.
the Telerik team
The RadWindow control does not contain method or property that can be used in order to set the status text of the window. The approach showed in my previous answer is the only way to set a text (the value of the text is from the server) to the status bar of the RadWindow .
the Telerik team