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

Different columns for primary nodes and child nodes

5 Answers 123 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Shamil
Top achievements
Rank 1
Shamil asked on 26 Apr 2012, 11:41 PM
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

5 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 01 May 2012, 03:07 PM
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.
0
Shamil
Top achievements
Rank 1
answered on 01 May 2012, 04:55 PM
Thank you Tsvetina,

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

Regards,
Shamil
0
Tsvetina
Telerik team
answered on 01 May 2012, 04:59 PM
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.
0
Maldeeban
Top achievements
Rank 1
answered on 10 Apr 2015, 03:33 AM
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

0
Konstantin Dikov
Telerik team
answered on 14 Apr 2015, 08:02 AM
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">
Tags
TreeList
Asked by
Shamil
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Shamil
Top achievements
Rank 1
Maldeeban
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or