radTreeView inside a PopUp

5 posts, 1 answers
  1. Xorv
    Xorv avatar
    19 posts
    Member since:
    Jan 2012

    Posted 04 Jan 2012 Link to this post

    Hi Admin,

    I have asp.net page. In that one label\link is there. Once the link is clicked, a popup would appear. I want a radTreeView inside it, containing details from database.
    My question is:- 'How to generate a RadTreeView inside a PopUp, when a link is clicked'

    Please see the attached image, for the requirement.

    Regards,
    Sourav
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Jan 2012 Link to this post

    Hello Sourav,

    You can attach the ClientClick event to the LinkButton and open the window.
    aspx:
    <asp:LinkButton ID="lnk" Text="Click" runat="server" OnClientClick="OpenRadWin();return false;"></asp:LinkButton>
     <telerik:RadWindow   Modal="true"   ID="RadWindow1" runat="server"  >
      <ContentTemplate>
        <telerik:RadTreeView ID="RadTreeView3" DataSourceID="SqlDataSource1" DataTextField="LastName" DataValueField="FirstName" DataFieldID ="EmployeeID" runat="server"></telerik:RadTreeView>
      </ContentTemplate>
     </telerik:RadWindow>
    JS:
    <script type="text/javascript">
       function OpenRadWin()
      {
       var oWnd = $find("<%= RadWindow1.ClientID %>");
       oWnd.radopen(null, "RadWindow1");
      }
    </script>

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Xorv
    Xorv avatar
    19 posts
    Member since:
    Jan 2012

    Posted 04 Jan 2012 Link to this post

    Hi Shinu,
    Its not working.
    After the click event, page re-loads and nothin happens.
    Some error must be there.


    Please see what could be the prob.
    thnx
  5. Xorv
    Xorv avatar
    19 posts
    Member since:
    Jan 2012

    Posted 04 Jan 2012 Link to this post

    SOMEBODY PLEASE HELP !!!
  6. Answer
    Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 04 Jan 2012 Link to this post

    Hello Xorv,

    The problem is with the js code. There is no radopen method on the RadWindow object. It should look like this to open a window.

    <script type="text/javascript">
       function OpenRadWin() 
      {
       var oWnd = $find("<%= RadWindow1.ClientID %>");
       oWnd.show();
      }
    </script>

    I hope that helps.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017