Is there a way to get the same functionality using code behind instead of clientside javascript.
For example the following code used in online demo .../liveDemos/Windows/Examples/RestrictionZone/Defaultcs.aspx
goes as follows:
function OnClientNodeClickingTreeview(sender, eventArgs)
{
var oManager = GetRadWindowManager();
//get the clicked node
var Url = eventArgs.get_node(sender, eventArgs).get_value();
//get the active RadWindow
var oWnd = GetRadWindowManager().getActiveWindow();
//now we need to open a new RadWindow and ensure that
//such RadWindow has not been already opened.
var windows = oManager.get_windows();
for (var i=0;i<windows.length;i++)
{
var wnd = windows[i];
//check if an already created window has that Url
if (wnd.get_navigateUrl() == Url)
{
//if so - activate that window
wnd.setActive(true);
return;
}
}
//else open a new window
radopen(Url,null);
}
I have been trying not to use javascript but instead to implement the above in codebehind. Where can I get info to assist me in the above endeavour?
For example the following code used in online demo .../liveDemos/Windows/Examples/RestrictionZone/Defaultcs.aspx
goes as follows:
function OnClientNodeClickingTreeview(sender, eventArgs)
{
var oManager = GetRadWindowManager();
//get the clicked node
var Url = eventArgs.get_node(sender, eventArgs).get_value();
//get the active RadWindow
var oWnd = GetRadWindowManager().getActiveWindow();
//now we need to open a new RadWindow and ensure that
//such RadWindow has not been already opened.
var windows = oManager.get_windows();
for (var i=0;i<windows.length;i++)
{
var wnd = windows[i];
//check if an already created window has that Url
if (wnd.get_navigateUrl() == Url)
{
//if so - activate that window
wnd.setActive(true);
return;
}
}
//else open a new window
radopen(Url,null);
}
I have been trying not to use javascript but instead to implement the above in codebehind. Where can I get info to assist me in the above endeavour?