Hi,
I would like to group data by multiple fields remotely on server. What is the data format for the grouping and grouped items ? For eg.,
I have a list of employees as follows :
I would like to group the employee list by State and then by Department. So my groupings and grouped items would be :
A - XYZ
- EMP[0], EMP[3]
A - PQR
- EMP[4]
B- XYZ
- EMP[1], EMP[2]
B - PQR
- EMP[5]
What is the format in which datasource requires these groupings and grouped items ? I saw this post http://www.kendoui.com/forums/framework/data-source/datasource-remote-grouping.aspx but could not figure out how to present multiple key values.
Thanks
I would like to group data by multiple fields remotely on server. What is the data format for the grouping and grouped items ? For eg.,
I have a list of employees as follows :
Employee[] empList = new Employee[6];
empList[0] = new Employee() { Name = "CA", State = "A", Department = "xyz" };
empList[1] = new Employee() { Name = "ZP", State = "B", Department = "xyz" };
empList[2] = new Employee() { Name = "AC", State = "B", Department = "xyz" };
empList[3] = new Employee() { Name = "AA", State = "A", Department = "xyz" };
empList[4] = new Employee() { Name = "A2", State = "A", Department = "pqr" };
empList[5] = new Employee() { Name = "BA", State = "B", Department = "pqr" };
I would like to group the employee list by State and then by Department. So my groupings and grouped items would be :
A - XYZ
- EMP[0], EMP[3]
A - PQR
- EMP[4]
B- XYZ
- EMP[1], EMP[2]
B - PQR
- EMP[5]
What is the format in which datasource requires these groupings and grouped items ? I saw this post http://www.kendoui.com/forums/framework/data-source/datasource-remote-grouping.aspx but could not figure out how to present multiple key values.
Thanks