updating title through Ajax

4 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 21 Mar 2013 Link to this post

    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.
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 21 Mar 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 21 Mar 2013 Link to this post

    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.
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 25 Mar 2013 Link to this post

    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.
Back to Top