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

Radwindow opened from Repeater Item

1 Answer 131 Views
Window
This is a migrated thread and some comments may be shown as answers.
Axel
Top achievements
Rank 2
Axel asked on 23 Jan 2010, 06:40 PM
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).
        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

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 27 Jan 2010, 02:10 PM
Hi Axel,

Your scenarios is little bit complex and I recommend you to open a new support ticket and send us a runnable project that shows your exact setup. We will check it and do our best to implement the desired behavior and send it back as soon as possible.

We are looking

Regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Axel
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or