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

Change of Document title Based on the Radgrid Row

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
anvesh amaravadi
Top achievements
Rank 1
anvesh amaravadi asked on 24 Nov 2009, 04:08 PM
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

1 Answer, 1 is accepted

Sort by
0
Roland
Top achievements
Rank 1
answered on 24 Nov 2009, 04:56 PM
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.
Tags
Grid
Asked by
anvesh amaravadi
Top achievements
Rank 1
Answers by
Roland
Top achievements
Rank 1
Share this question
or