Hi.
I don't english very well. T.T;
some question about sorting.
why do not sorting after data append ?
data's append and view change (I use "refreshDataAndView" after data append.)
table head title click(sorting) --> sorting X
========================================
ajax dataResult : self._data['fid1004'].data
colModel.push({ title: "일자", dataIndx: '500', width: "80px", dataType:"string", align:"center", render: formatter.dateFormat});
colModel.push({ title: "전일대비부호", dataIndx: '5', dataType:"string", hidden:true });
colModel.push({ title: "주가", dataIndx: '4', width: "90px", dataType:"integer", align:"right", render: function(ui) { return formatter.upDownArrCss(ui, 'N'); } } );
colModel.push({ title: "등락폭", dataIndx: '6', width: "80px", dataType:"integer", align:"right", render: function(ui) { return formatter.upDownArrCss(ui, 'Y'); } });
colModel.push({ title: "등락률", dataIndx: '7', width: "80px", dataType:"float", align:"right", render: function(ui) { return formatter.upDownArrCss(ui, 'N', '%'); } });
colModel.push({ title: "거래량", dataIndx: '8', width: "100px", dataType:"integer", align:"right", render: formatter.commify});
colModel.push({ title: "금액(백만)", dataIndx: '9', width: "100px", dataType:"integer", align:"right", render: formatter.commify });
colModel.push({ title: "시가", dataIndx: '22', width: "90px", dataType:"integer", align:"right", render: function(ui) { return formatter.compareCss(ui, Number(ui.rowData['4']) - Number(ui.rowData['6'])) } });
colModel.push({ title: "고가", dataIndx: '23', width: "90px", dataType:"integer", align:"right", render: function(ui) { return formatter.compareCss(ui, Number(ui.rowData['4']) - Number(ui.rowData['6'])) } });
colModel.push({ title: "저가", dataIndx: '24', width: "90px", dataType:"integer", align:"right", render: function(ui) { return formatter.compareCss(ui, Number(ui.rowData['4']) - Number(ui.rowData['6'])) } });
self.pqGrid = $("#"+self._tmpid + " .pq-grid_6130").pqGrid({
width: '822px',
height: '229px',
title: '주식일자별',
colModel: colModel,
dataModel: { data : self._data['fid1004'].data }
});
$(self.pqGrid).pqGrid('refreshDataAndView');
self._loadingFlag = true;
$("div.pq-sb-vert", self.pqGrid ).on( "pqscrollbarscroll", function( event, ui ) {
// Next
if(ui.cur_pos == ui.num_eles-1 && self._loadingFlag) {
self._loadingFlag = false;
self.createData();
}
} );