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

updating title through Ajax

3 Answers 42 Views
Window
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 21 Mar 2013, 04:37 PM
I have a radwindow dialog (opened through RadWindowManager and .radopen()) that loads a page for users to enter information in a form. The form contains a button which raises an ajax update, storing the user's entered values and displaying a loading image. Once the info is saved, I would like to change the dialog's title.  I don't think this is possible to do today, or at least is quite difficult since it requires the ajax call to update the container. Anyhow, if it isn't possible today, it would be a nice piece of functionality to add to RadWindow in the future.

3 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 21 Mar 2013, 06:03 PM
Hi Albert Shenker,

If you raise an event when the info is saved, you can change the Title property of the RadWindow from the server side (source). If the RadWindow is inside of a RadAjaxManager, it should update without causing a postback. See if you can change the Title property from the server side and make this functionality work.

Hopefully this helps,
Master Chief
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 21 Mar 2013, 06:21 PM
I'm not sure what you mean by a RadWindow inside of RadAjaxManager. There is no RadWindow object since it is opened through RadWindowManager and .radopen.
0
Marin Bratanov
Telerik team
answered on 25 Mar 2013, 03:12 PM
Hi guys,

You can use JavaScript to do this:
1) get a reference to the RadWIndow from inside. This is done with the famous GetRadWindow function that can be seen here
2) use the client-side API of the control - the set_title(string) method

If you obtain the new title on the server you can store it in a hidden field, for example. The ready function can be called from the server by following this help article or by using the ResponseScripts collection of the RadAjaxManager if you are using one.


Regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Marin Bratanov
Telerik team
Share this question
or