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
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