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

Popup a New Webpage in RadGrid

9 Answers 90 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 23 Nov 2009, 08:45 PM
Hi
I am using a Radgrid I have used javascript to popup a webpage when user double clicks on any row
The webpage contains details about that record
I have used Client settings tag of Radgrid for calling the JavaScript function
Everything is working fine A new web page is popping up when user double clicks any row on the radgrid
But my problem is that the page which is popping up doesn't showing any title bar or menu bar or status bar
I surely need title bar to be shown as i need to show the row name on it to the users
The javascript is given here

function RowDblClick()
{
window.radopen(

"SasWorkLogInfo.aspx?TicketID=" + eventArgs.getDataKeyValue("Request"), "worklog", titlebar, scroll, status);

 

 

}

<

 

ClientSettings>

 

 

 

<ClientEvents OnRowDblClick="RowDblClick" OnRowClick="RowClick" />

 

 

 

</ClientSettings>

Thanks

 

 

9 Answers, 1 is accepted

Sort by
0
Roland
Top achievements
Rank 1
answered on 23 Nov 2009, 09:32 PM
Hello,

Make sure that in the page SasWorkLogInfo.aspx you set page.Title to something, because this is being displayed as window title.
0
anvesh amaravadi
Top achievements
Rank 1
answered on 23 Nov 2009, 09:35 PM
Hello Roland,

Thanks for Replying but I already did that still no use
0
Roland
Top achievements
Rank 1
answered on 23 Nov 2009, 09:40 PM
Hello again,

Make sure that you master page for that page is not setting the Title to string.empty;
0
anvesh amaravadi
Top achievements
Rank 1
answered on 23 Nov 2009, 09:49 PM
Hello Roland

I have checked them but i think there should be some properties that should be set up
as we do web page popup with a hyperlink setting titlebar=1 or true something like that
0
Accepted
Roland
Top achievements
Rank 1
answered on 23 Nov 2009, 09:55 PM
Hello again :)

Try this:

var wnd = window.radopen(...); 
 
wnd .set_title(title); 
wnd .set_status(status); 

for radopen use only :

radopen(

"SasWorkLogInfo.aspx?TicketID=" + eventArgs.getDataKeyValue("Request"), title);


0
Mark Galbreath
Top achievements
Rank 2
answered on 24 Nov 2009, 02:32 PM
The prototype for Window.open() is

window.open( url, name, features, replace ); 

The name parameter becomes your window title.  The features parameter is a comma-delimited string that specifies which features of a standard browser window are to appear in the new window.  If this option is absent, all features are turned on (feature=yes), but if a single feature is specified, all others are turned off (feature=no).  If a feature appears in the list, the default behavior is =yes, and so the "=yes" may be omitted.  For features requiring a value (e.g., height, width), pixels is the default scale. 

So you can display your title and status bar like so

window.open( "/serverroot/mypage.aspx", "mytitle", "status" ); 

There are about 20 other features, but you can find them yourself on google.
0
Roland
Top achievements
Rank 1
answered on 24 Nov 2009, 03:04 PM
Hello,

He wants to use RadWindow not opening new browser window.

Please try the code in my previous post.
0
anvesh amaravadi
Top achievements
Rank 1
answered on 24 Nov 2009, 03:54 PM
Hello Ronald,

You are right. I have got the solution with your suggestion
the main problem is with the "worklog"
so i have changed and solved the problem
all thanks to you mate
0
Mark Galbreath
Top achievements
Rank 2
answered on 24 Nov 2009, 04:13 PM
Ah, I see it in his code snippet now; RadWindow wasn't mentioned in the problem statement.
Tags
Grid
Asked by
anvesh amaravadi
Top achievements
Rank 1
Answers by
Roland
Top achievements
Rank 1
anvesh amaravadi
Top achievements
Rank 1
Mark Galbreath
Top achievements
Rank 2
Share this question
or