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

RadGrid for SharePoint 2010 Custom Visual WebPart

1 Answer 126 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
veena
Top achievements
Rank 1
veena asked on 01 Feb 2012, 01:41 PM
Hi,
We have a requirement as follows:

1. We have a WCF service which fetches data from the database.
2. We are using IEnumerable Collection (custom class with properties) object to bind to the Visual Web Part GridView.
3. We want to replace this Gridview with Telerik Rad Grid.
4. The Data collection object need to be displayed in hierarchy.
Eg;
a. WCF Service Method -> GetAll_Employees();
b. public class Employees
{
public int ID;
public string Name;
public string Address;
public int ReportToID;
}
c. The WCF Service returns the IEnumberable<Employees> object to the WebPArt UI.
d. The employee details should be displayed with the Reporting Officer details and the employees reporting to the person as the child collection.
eg;      Reetha    India
                 Geetha    India
                  Meena     India
            Jaya K        India
here Reetha and Jaya K are the employees at the root node and Geetha and Meena are the employees reporting to Reetha , so shown as child. The relation is the ReportToID property in the Employees class.
 
How we can display this in the RadGrid with child and parent and also with an IEnumerable Collection object returned from the WCF as binding data source. Also this need to be done in a Custom Visual Webpart in SP 2010.

Thanks in advance.
Veena R

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 07 Feb 2012, 04:42 PM
Hello Veena,

Unfortunately, RadGrid and SPRadGrid for that matter do not support hierarchical client-side binding.

Regards, Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Sharepoint Integration
Asked by
veena
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or