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

[Solved] Panel bar Group by issue

0 Answers 4 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Abhi
Top achievements
Rank 1
Abhi asked on 27 Dec 2012, 10:24 AM
Hi,

I have a collection class and i want to bind it in a panel bar group by two entites in the collection items.
please see the below code.

public class Employee {
        public int ID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime PayDate { get; set; }
        public Decimal Amount { get; set; }
        public string PayTypeDescription { get; set; }
    }

    public class EmployeeeDetailModel {
        public int Year { get; set; }
        public string State { get; set; }
        public IList<Employee> EmployeeModel { get; set; }
}

I am passing this EmployeeeDetailModel to the view.

I want to generate a panel view which should be grouped by first name and last name.
each panel bar heading should be the full name(first name+last name) and it's related data should be populate inside the panel area.
so the output will look like below screen shot screen shot

[url=http://postimage.org/image/456v36z2j/][img]http://s1.postimage.org/456v36z2j/screenshot.jpg[/img][/url]


please help me.

Thanks,
Abhi



Tags
PanelBar
Asked by
Abhi
Top achievements
Rank 1
Share this question
or