Different columns for primary nodes and child nodes

6 posts, 0 answers
  1. Shamil
    Shamil avatar
    2 posts
    Member since:
    Jul 2012

    Posted 26 Apr 2012 Link to this post

    I’d like to create a list based on RadTreeList with different columns for nodes and their child nodes.  For example, I want to list all items that different shops have and therefore my parent node will be a shop with title, address, phone, url and child nodes are items it sells (title, price, quantity, rating, etc).

    How can I do that or is there any workaround?

    Ps. I wonder that in the “Pro Telerik ASP.NET and Silverlight Controls” book RadTreeList don’t even mentioned.

    Regards,
    Shamil
  2. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 01 May 2012 Link to this post

    Hello Shamil,

    The data that you describe does not sound like a self-referencing table, so I think RadTreeList is not the right choice here. You should rather use a hierarchical RadGrid:
    Grid Hierarchy

    RadTreeList is a relatively new control, so I assume it was not available back when the book was issued.

    All the best,
    Tsvetina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shamil
    Shamil avatar
    2 posts
    Member since:
    Jul 2012

    Posted 01 May 2012 Link to this post

    Thank you Tsvetina,

    I will check the hierarchical RadGrid, though inner table headers look redundant in my case.

    Regards,
    Shamil
  5. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 01 May 2012 Link to this post

    Hi Shamil,

    You can hide the headers with the following code:
    protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
        CreateExpandCollapseButton(e.Item, "EmployeeID");
        if (e.Item is GridHeaderItem && e.Item.OwnerTableView != RadGrid1.MasterTableView)
        {
            e.Item.Style["display"] = "none";
        }
    }


    Greetings,
    Tsvetina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Maldeeban
    Maldeeban avatar
    1 posts
    Member since:
    Apr 2015

    Posted 09 Apr 2015 Link to this post

    Hi,

    Reg : Lazy loading implementation in Telerik:RadTreeList: (URGENT)

    Please guide us how to implement the Lazy loading in the RadTreeList.

    Requirement Details:

    1)     
    Pageload will call the Parent storedprocedure (Storedprocedure
    1) and fetch the parent data’s.

    2)     
    When click the expander (‘+’), it’s should call
    the child stored procedure (Storedprocedure 2) and bind the child data to the
    respective parent in the UI.

    Control is implemented for referential purpose usage, like
    parent and child having the same header text.

    Thanks in Advance…

    Thanks,

    Maldeeban R

  7. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1798 posts

    Posted 14 Apr 2015 Link to this post

    Hello Maldeeban,

    RadTreeList support LoadOnDemand functionality, which allows child nodes to be added on the fly as parent nodes are expanded. Detailed information on this functionality and live demo could be found in the following links:
    Hope this helps.


    Regards,
    Konstantin Dikov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
    </strong">
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017