Change of Document title Based on the Radgrid Row

2 posts, 0 answers
  1. anvesh amaravadi
    anvesh amaravadi avatar
    10 posts
    Member since:
    Nov 2009

    Posted 24 Nov 2009 Link to this post

    Hi ,

    I Have radgrid, I want to show a webpage when user double clicks a row in that radgrid
    the page contains some more details about that record
    I have acheived this all
    What i now need is, Dynamic change of title bar of that popping up webpage
    I need the title bar of the window to be based on the record clicked by user
    for example if a user clicks the record which has the main field as anvesh then the title of that page should be anvesh
    if the user clicks the record which has main field as princy or ronald it has to be reflected as title of the page
    i have used javascript for popping up webpage so i think it would be better if u give me an idea in javascript
    i do know how to do it in code behind
    so pleasse help me

    Thanks
  2. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 24 Nov 2009 Link to this post

    In your page (the one that opens in the Rad window):

    function GetRadWindow() { 
        var oWindow = null
        if (window.radWindow) 
            oWindow = window.radWindow; 
        else if (window.frameElement == null
            return null
        else if (window.frameElement.radWindow) 
            oWindow = window.frameElement.radWindow; 
        return oWindow; 
     
    function setTitle(title) { 
    var wnd = GetRadWindow(); 
    if(wnd != null
    wnd.set_title(title); 
        wnd.set_status(title); 
     

    If this is normal browser window, document.title will do that in javascript.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top