RadGrid for SharePoint 2010 Custom Visual WebPart

2 posts, 0 answers
  1. veena
    veena avatar
    4 posts
    Member since:
    Jul 2011

    Posted 01 Feb 2012 Link to this post

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

  2. Tsvetoslav
    Tsvetoslav avatar
    1823 posts

    Posted 07 Feb 2012 Link to this post

    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 >>
Back to Top