Popup a New Webpage in RadGrid

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

    Posted 23 Nov 2009 Link to this post

    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

     

     

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

    Posted 23 Nov 2009 Link to this post

    Hello,

    Make sure that in the page SasWorkLogInfo.aspx you set page.Title to something, because this is being displayed as window title.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. anvesh amaravadi
    anvesh amaravadi avatar
    10 posts
    Member since:
    Nov 2009

    Posted 23 Nov 2009 Link to this post

    Hello Roland,

    Thanks for Replying but I already did that still no use
  5. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 23 Nov 2009 Link to this post

    Hello again,

    Make sure that you master page for that page is not setting the Title to string.empty;
  6. anvesh amaravadi
    anvesh amaravadi avatar
    10 posts
    Member since:
    Nov 2009

    Posted 23 Nov 2009 Link to this post

    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
  7. Answer
    Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 23 Nov 2009 Link to this post

    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);


  8. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 24 Nov 2009 Link to this post

    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.
  9. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 24 Nov 2009 Link to this post

    Hello,

    He wants to use RadWindow not opening new browser window.

    Please try the code in my previous post.
  10. anvesh amaravadi
    anvesh amaravadi avatar
    10 posts
    Member since:
    Nov 2009

    Posted 24 Nov 2009 Link to this post

    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
  11. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 24 Nov 2009 Link to this post

    Ah, I see it in his code snippet now; RadWindow wasn't mentioned in the problem statement.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017