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