Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - codexyz

Pages: [1]
1
Help for ParamQuery Grid (free version) / Why row focus(dotted box) missed?
« on: November 14, 2014, 02:42:06 pm »
keyboard left, right key -> horizonScroll Control

i customized pqgrid PRO...

_pKeyNav._bodyKeyPressDown = function(evt) {

....

if (evt.keyCode == keyCodes.LEFT) {
   var decr = 0;

   if (SM.type == "row" && $(that.$hscroll)[0].style.display != 'none') {
      $(that.$hscroll).children('.left-btn').trigger('click');
      decr = 1;
   }
        var obj = this._decrIndx(rowIndxPage, colIndx);
   if (obj) {
      rowIndx = obj.rowIndxPage + offset + decr;
      this.select({
         rowIndx: rowIndx,
         colIndx: obj.colIndx,
         evt: evt
      })
   }
   evt.preventDefault();
   return
} else {
        if (evt.keyCode == keyCodes.RIGHT) {
      var incr = 0;
     
      if (SM.type == "row" && $(that.$hscroll)[0].style.display != 'none') {
         $(that.$hscroll).children('.right-btn').trigger('click');
         incr = -1;
      }
           
      var obj = this._incrIndx(rowIndxPage, colIndx);
      if (obj) {
         rowIndx = obj.rowIndxPage + offset + incr;
               
         this.select({
            rowIndx: rowIndx,
            colIndx: obj.colIndx,
            evt: evt
         })
      }
      evt.preventDefault();
      return
   } else {
       
        .....

}

......

keyboard left, right key -> horizonScroll Control very Well.

but, row focus(dotted box) missed.... T.T

2
keyboard left, right key -> horizonScroll Control

i customized pqgrid PRO...

_pKeyNav._bodyKeyPressDown = function(evt) {

....

if (evt.keyCode == keyCodes.LEFT) {
   var decr = 0;

   if (SM.type == "row" && $(that.$hscroll)[0].style.display != 'none') {
      $(that.$hscroll).children('.left-btn').trigger('click');
      decr = 1;
   }
        var obj = this._decrIndx(rowIndxPage, colIndx);
   if (obj) {
      rowIndx = obj.rowIndxPage + offset + decr;
      this.select({
         rowIndx: rowIndx,
         colIndx: obj.colIndx,
         evt: evt
      })
   }
   evt.preventDefault();
   return
} else {
        if (evt.keyCode == keyCodes.RIGHT) {
      var incr = 0;
      
      if (SM.type == "row" && $(that.$hscroll)[0].style.display != 'none') {
         $(that.$hscroll).children('.right-btn').trigger('click');
         incr = -1;
      }
            
      var obj = this._incrIndx(rowIndxPage, colIndx);
      if (obj) {
         rowIndx = obj.rowIndxPage + offset + incr;
               
         this.select({
            rowIndx: rowIndx,
            colIndx: obj.colIndx,
            evt: evt
         })
      }
      evt.preventDefault();
      return
   } else {
       
        .....

}

......

keyboard left, right key -> horizonScroll Control very Well.

but, row focus(dotted box) missed.... T.T

What's a matter?

3
Hi.

some question. How control horizonScroll by Keyboard(left, right).
-----------------------------------------------------
I set option

selectionModel: {type: 'row', mode: 'single' }
-----------------------------------------------------

keyboard left, right key -> How horizonScroll Control ?

now, keyboard left, right key -> next Row selected or prev Row selected.

ps) I'm not english very well. T,.T

4
Help for ParamQuery Grid (free version) / Hi. some question
« on: November 13, 2014, 08:17:25 am »
Hi.

some question.
-----------------------------------------------------
selectionModel: {type: 'row', mode: 'single' }

keyboard left, right key -> no row increase, How horizonScroll Control ???

ps) I'm not english very well. T,.T








5
Hi. one question.

I'm not English very well.

How are always visible vertical Scroll ?


6
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();
   }
} );



7
Hi.

pqgrid(Pro) don't have formatter? (same jqgrid.formatter)






Pages: [1]