| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head><link rel="stylesheet" type="text/css" href="Common/Styles.css" /> |
| <script language="javascript" type="text/javascript" > |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| function Click(symbol) { |
| var curWin = GetRadWindow(); |
| var bw = curWin.BrowserWindow; |
| bw.insertC(symbol); |
| } |
| </script> |
| <title> |
| </title></head> |
| <body> |
| <div id="Symbol_div"> |
| <table id="Symbol_div_table" cellpadding="0" cellspacing="0" class="symbolTable"> |
| <tr> |
| <td onclick="Click('α');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">α</span></span></a></div></td> |
| <td onclick="Click('β');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">β</span></span></a></div></td> |
| <td onclick="Click('γ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">γ</span></span></a></div></td> |
| <td onclick="Click('Ï€');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">π</span></span></a></div></td> |
| <td onclick="Click('ω');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">ω</span></span></a></div></td> |
| </tr> |
| <tr> |
| <td onclick="Click('δ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">δ</span></span></a></div></td> |
| <td onclick="Click('φ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">φ</span></span></a></div></td> |
| <td onclick="Click('θ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">θ</span></span></a></div></td> |
| <td onclick="Click('κ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">κ</span></span></a></div></td> |
| </tr> |
| </table> |
| </div> |
| </body> |
| </html> |
| function insertC(c) { |
| if (document.selection) { // IE |
| var rng = document.selection.createRange(); |
| rng.text = c; |
| rng.select(); |
| } |
| else { //Firefox |
| var sel = document.getSelection(); |
| var range = window.getSelection().getRangeAt(0); |
| range.deleteContents(); |
| range.insertNode(document.createTextNode(c)); |
| } |
| } |

<
telerik:RadComboBox ID="cbRange" runat="server" >
<ItemTemplate>
<div id="div1">
<telerik:RadTreeView runat="server" ID="rd" NodeExpand="rd_NodeExpand" OnClientNodeClicking="cbNodeClicking">
</telerik:RadTreeView>
</div>
</ItemTemplate>
<Items>
<telerik:RadComboBoxItem Text="" />
</Items>
</telerik:RadComboBox>
function cbNodeClicking(sender, args)
{
var comboBox = $find("<%= cbRange.ClientID %>");
var node = args.get_node();
if(node.get_level()<2)
{
SomeHtmlInputControl.value = "";
comboBox.set_text("");
}
else
{
SomeHtmlInputControl.value = node.get_value();
comboBox.set_text(node.get_text());
}
comboBox.hideDropDown();
}
After installing the latest 2008.Q1 release of the contros, I get this strange behaviour: The very first time I select a node, regardless of its level, I get all first level nodes text combined, as the text set in the combobox! After that, each time I select a node, either the empty string (for level less than 2) or the node text is set as the ComboBox text, which is the correct behaviour.
Why is that?

Hi all,
All this works fine but would like to know how I can pass values between popup1 and popup2. Do I have to scrap using the manager and open each RadWindow with radopen?
I have read the article ‘Returning Values From a Dialog’ and based my code around this using 3 pages (2 popups) rather than your 2 pages with one as a pop up example. I can create and populate popup1.argumants and pass them back to page1 but cannot accomplish this from popup1 to popup2.
Any help on this one would be much appreciated
Many thanks
Tim


