energyGrid.use('Net', {
el: $('#data_form'),
initialRequest: true, //초기화 후 readData요청여부
readDataMethod: 'GET',
perPage: 500,
enableAjaxHistory: false,
api: {
'readData': '/selectInfo'
}
});
// Bind event handlers
energyGrid.on('beforeRequest', function(data) {
// For all requests
}).on('response', function(data) {
// For all response (regardless of success or failure)
}).on('successResponse', function(data) {
// Only if response.result is true
}).on('failResponse', function(data) {
// Only if response.result is false
}).on('errorResponse', function(data) {
// For error response
});
net = energyGrid.getAddOn('Net');
Version version: 3.0 Development Environment window7 / chrome / eclipse/spring jquery 3.2.1 tomcat 7
Current Behavior
`var net; var energyGrid = new tui.Grid({ el: $('#energyGrid'), bodyHeight: 550, bodyHeight: $(".sidebar-offcanvas").height(), rowHeaders: ['rowNum'], columnOptions: { width: 100 }, columns: [ { title: '층별명', name: 'floor' }, { title: '냉난방/비냉난방', name: 'machine' }, { title: '장비명', name: 'equip_nm' } ] });
});`
안녕하세요. net으로 통신하여 목록을 가져오려하는데.
잘안되서 문의드려요
`@RequestMapping(value = "/selectInfo", method = RequestMethod.GET) public String selectInfo(@RequestParam Map<String, String> paramMap, ModelMap model) throws Exception { model.addAttribute("readData", dashBoardService.selectEnergyInfo(paramMap));