Radwindow opened from Repeater Item

2 posts, 0 answers
  1. AxelGunn
    AxelGunn avatar
    41 posts
    Member since:
    Jul 2009

    Posted 23 Jan 2010 Link to this post


    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();  
                if (node) {  

    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 %>');  

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 27 Jan 2010 Link to this post

    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

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top