Using the new logic after using generateViewSchema(...) function for

generating schema properly for the collection for rendering the grid.
This commit is contained in:
Ashesh Vashi
2016-01-17 22:31:49 +05:30
parent 0edf29b534
commit 7e621c9d7f

View File

@@ -619,8 +619,8 @@
} }
// Prepare columns for backgrid // Prepare columns for backgrid
_.each(groups, function(fields, key) { _.each(groups, function(group, key) {
_.each(fields, function(f) { _.each(group.fields, function(f) {
if (!f.cell) { if (!f.cell) {
return; return;
} }
@@ -630,7 +630,7 @@
columns.push(f); columns.push(f);
} }
}); });
schema.push({label: key, fields: fields}); schema.push(group);
}); });
return { return {
'columns': _.sortBy(columns, function(c) { 'columns': _.sortBy(columns, function(c) {