Hi
I am having a problem that you may possibly regard as a general server vs. client issue and I admin that my javascript knowhow could be better.
I am invoking a RadWindows from an ImageButton in a Repeater listItem. My Radwindow aspx uses a ServerControl with an embedded RadTree control.
When I close my content aspx RadWindow page I am trying to send my Radtree node value back to a Repeater ListItem asp:Textbox.
My RadWindow Javascript OnClose function looks like this where I am calling function ReloadPlace("parameters") in my parent page (my Repeater1 page).
This is where my problem ONE is. Since my popup radWindow aspx page has the RadTree embedded in a ServerControl like this:
In my parent page I have my ReloadPlace() function. I want it (or use a better way if possible) to update my Repeater ListItem Textbox with the returning argument from my RadWindow page but do not know how to reach my ListItem textbox. I'm most likely overextending the purpose of your helpdesk but thought I'd as anyway.
This is my unction (unfinished).
thanks
Axel
I am having a problem that you may possibly regard as a general server vs. client issue and I admin that my javascript knowhow could be better.
I am invoking a RadWindows from an ImageButton in a Repeater listItem. My Radwindow aspx uses a ServerControl with an embedded RadTree control.
When I close my content aspx RadWindow page I am trying to send my Radtree node value back to a Repeater ListItem asp:Textbox.
My RadWindow Javascript OnClose function looks like this where I am calling function ReloadPlace("parameters") in my parent page (my Repeater1 page).
function CloseAndRebind() { |
//var ctrl = document.getElementById('tvDivisionTree.ClientID'); |
var tree = $find('<%= DivisionPicker1.FindControl("tvDivisionTree").ClientID %>'); |
var node = tree.get_selectedNode(); |
GetRadWindow().Close(oArg); |
if (node) { |
GetRadWindow().BrowserWindow.ReloadPlace(node.get_text()); |
} |
else |
GetRadWindow().BrowserWindow.ReloadPlace(""); |
} |
This is where my problem ONE is. Since my popup radWindow aspx page has the RadTree embedded in a ServerControl like this:
<
uc1:DivisionPicker ID="DivisionPicker1" TreeEnabled="true" runat="server" />
I seem to be running out of options to locate my RadTree clientID. As you can see above I have been trying both $find and getElementByID.
In my parent page I have my ReloadPlace() function. I want it (or use a better way if possible) to update my Repeater ListItem Textbox with the returning argument from my RadWindow page but do not know how to reach my ListItem textbox. I'm most likely overextending the purpose of your helpdesk but thought I'd as anyway.
This is my unction (unfinished).
function ReloadPlace(departmentID) { |
//var txtbox = $find('<%# MyRepeaterListitem.....ClientID %>'); |
alert(departmentID); |
} |
thanks
Axel