Hi, I wrote kendo Grid control in javascript application; I had needed implement server-side grouping, but I couldn't turn it on eventually. Server sorting, and filtering already works, perhaps I am doing something wrong in a render-control-code; here it is:
When I fire my application, I am trying drag'n'drop column header to "Drop column header here" box, but it seems like this functionality was disabled.
Maybe I am missing some section in kendoGrid constructor, or maybe I wrote some unnecessary data?
01.jQuery(ORDER_GRID_ID).kendoGrid({02. "change": XX.OrderGrid_Change,03. "columns": [{04. "title": XX.Title,05. "width": "120px",06. "field": "number",07. "filterable": true,08. "encoded": true09. },10. {11. "title": XX.Title1,12. "width": "200px",13. "field": "status",14. "filterable": true,15. "encoded": true16. },17. {18. "title": XX.Title2,19. "width": "100px",20. "field": "orderDate",21. "format": "{0: yyyy/MM/dd}",22. "filterable": true,23. "encoded": true24. },25. {26. "title": XX.Title3,27. "width": "100px",28. "field": "deliveryDate",29. "format": "{0: yyyy/MM/dd}",30. "filterable": true,31. "encoded": true32. },33. {34. "title": XX.Title4,35. "width": "200px",36. "field": "customer.userName",37. "filterable": true,38. "encoded": true39. },40. {41. "title": XX.Title5,42. "template": "#=totalRequested()# EUR",43. "field": "totalRequested()",44. "filterable": true,45. "encoded": true46. }],47. "groupable": true,48. "pageable": {49. "input": true,50. "refresh": true,51. "pageSizes": [2, 5, 10, 100],52. "buttonCount": 1053. },54. "scrollable": {55. "virtual": true56. },57. "sortable": true,58. "selectable": "Single, Row",59. "toolbar": [{60. "template": '...here is an HTML with toolbar; nothing valuable to solve grouping problem...'61. }],62. "dataSource": {63. "transport": {64. "read": function (options) {65. getOrders(options);66. },67. },68. "schema": {69. "groups": [{70. "field": "number"71. }],72. "data": "data",73. "total": "total"74. },75. "pageSize": 10,76. "serverPaging": true,77. "serverSorting": true,78. "serverFiltering": true,79. "serverGrouping": true, //why its not working?80. "serverAggregates": true,81. "error": XX.OrderGrid_Error82. }83. });When I fire my application, I am trying drag'n'drop column header to "Drop column header here" box, but it seems like this functionality was disabled.
Maybe I am missing some section in kendoGrid constructor, or maybe I wrote some unnecessary data?