This question is locked. New answers and comments are not allowed.
I have transaction data that I need grouped.
See image "gridgrouping1.jpg"
1)
I have the grouping text the way I want it (Full Month, Full Year) based on a field I have called "groupByDate". This field is a date field, and it is the first day of its respective month, and I'm grouping all my data based on this date.
As you can see in the image, the "Group by Date" column is showing even though "hidden: true" is set on this column.
I need to keep my grouping but not display the "group by" column.
2) Is there any way to disable the user being able to click on the "group by" bar which collapses the group by data. i.e. I want to keep all the group by headers expanded and not have the user be able to click to collapse + hide the "arrow" that shows the expaned/collapsed state.
3) Using Telerik "light" CSS, what are the class names involved with the group by headers so that we can skin them for our client.
4) We have a dropdown above the grid which contains all the distinct "group by" headers (see image "gridgrouping2.jpg)
The client would like it if when the user selects "February 2013" for example, that the grid scrolls or changes position so that the "February 2013" group header is now the first row in the grid. It's just a dropdown that will auto scroll the grid to the desired date grouping...
My current grid code is below,
Thanks,
Randy
See image "gridgrouping1.jpg"
1)
I have the grouping text the way I want it (Full Month, Full Year) based on a field I have called "groupByDate". This field is a date field, and it is the first day of its respective month, and I'm grouping all my data based on this date.
As you can see in the image, the "Group by Date" column is showing even though "hidden: true" is set on this column.
I need to keep my grouping but not display the "group by" column.
2) Is there any way to disable the user being able to click on the "group by" bar which collapses the group by data. i.e. I want to keep all the group by headers expanded and not have the user be able to click to collapse + hide the "arrow" that shows the expaned/collapsed state.
3) Using Telerik "light" CSS, what are the class names involved with the group by headers so that we can skin them for our client.
4) We have a dropdown above the grid which contains all the distinct "group by" headers (see image "gridgrouping2.jpg)
The client would like it if when the user selects "February 2013" for example, that the grid scrolls or changes position so that the "February 2013" group header is now the first row in the grid. It's just a dropdown that will auto scroll the grid to the desired date grouping...
My current grid code is below,
var gridSectionReserveAccountActivity = new Telerik.UI.RadGrid(document.getElementById("gridSectionReserveAccountActivity"), { dataSource: { data: vm.sectionReserveTransactions, group: { field: "groupByDate", dir: "desc" }, schema: { model: { fields: { date: { type: "date" }, groupByDate: { type: "date" }, description: { type: "string" }, withdrawal: { type: "number" }, deposit: { type: "number" }, balance: { type: "number" } } } }, sort: [ { field: "date", dir: "desc" } ] }, columns: [ { field: "groupByDate", title: "Group by Date", width: "0px", hiddden: true, groupHeaderTemplate: "#=vw.Formatter.Date.isDate(value) ? vw.Formatter.Date.toFullMonthFullYear(value) : ''#" }, { field: "date", title: "Date", format: "{0:MMM dd yy}", width: "85px" }, { field: "description", title: "Description", sortable: false }, { field: "withdrawal", title: "Withdrawals", format: "{0:N2}", width: "130px", attributes: { style: "text-align: right; padding-right: 20px;" }, headerAttributes: { style: "text-align: right; padding-right: 20px;" }, template: "#=withdrawal > 0 ? vw.Formatter.Currency.toCurrency(withdrawal) : ''#" }, { field: "deposit", title: "Deposits", format: "{0:N2}", width: "110px", attributes: { style: "text-align: right; padding-right: 20px;" }, headerAttributes: { style: "text-align: right; padding-right: 20px;" }, template: "#=deposit > 0 ? vw.Formatter.Currency.toCurrency(deposit) : ''#" }, { field: "balance", title: "Reserve Balance", format: "{0:N2}", width: "150px", attributes: { style: "text-align: right; padding-right: 20px;" }, headerAttributes: { style: "text-align: right; padding-right: 20px;" }, template: "#=balance > 0 ? vw.Formatter.Currency.toCurrency(balance) : ''#" } ], sortable: "single, allowUnsort", selectable: "none", filterable: false, groupable: { enabled: false, staticHeaders: true }, reorderable: false, resizable: false});Thanks,
Randy