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

New windows appears behind active through OnRowClick

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Niklas Schneider
Top achievements
Rank 1
Niklas Schneider asked on 21 Aug 2009, 12:08 PM
Hi,
it open a new window from a selected grid row through OnRowClick. The grid is part of the active window. The new window is opened behind the active window, even though it is set as active. Both windows are accessible. OnRowClick triggers the following client function ShowWin. When calling this function from a button (triggered through onclick), the new window appeares topmost.

function ShowWin(sender, eventArgs)
{
    var itemId = eventArgs.getDataKeyValue("itemId");
    var oWnd = GetRadWindow().BrowserWindow.radopen('/Data.aspx?itemId=' + itemId, null);
    oWnd.set_title('Edit data');
    oWnd.setSize(600, 400);
    oWnd.center();
    oWnd.setActive(true);
}

and in the grid

<ClientSettings EnableRowHoverStyle="True">        
    <ClientEvents OnRowClick="ShowWin"></ClientEvents>
</ClientSettings>

Best regards
Niklas Schneider

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 24 Aug 2009, 10:18 AM
Hello Niklas,

Could you try modifying the attached sample, so that the problem is reproduced. In addition, what is the definition of the GetRadWindow method , is it as in the documentation? Is the grid part of a RadWindow or a regular browser one?

Thanks.

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Niklas Schneider
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or