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 - jomeihua

Pages: [1]
1
Help for ParamQuery Pro / Re: refreshCell getChanges
« on: February 27, 2014, 12:55:45 pm »
I am not update immediately,  I want add into update list and save all change list
Is this the fuction i need?

2
Help for ParamQuery Pro / Re: refreshCell getChanges
« on: February 27, 2014, 07:37:01 am »
how can i mention primary key ?

3
Help for ParamQuery Pro / refreshCell getChanges
« on: February 26, 2014, 10:10:22 am »

$(function() {
  ...
  ...
  refresh: function () {                 //조회          
             $("#grid_editing").find("button.search_btn").button({ icons: { primary: 'ui-icon-search'} }) 
             .unbind("click")             
             .bind("click", function (evt) {
                var $tr = $(this).closest("tr");                 
                var obj = $grid.pqGrid("getRowIndx", { $tr: $tr });                 
                var rowIndx = obj.rowIndx;
               selectRow = rowIndx;

                var url = "/service/simpleCommand/?mnuGrpID="+$("#mnuGrpID").val()+"&pgmID="+$("#pgmID").val()+
                     "&viewID=EXM01001C&finalAction=getDivison";
               
                     newModalDialog(url, "EXM01001C", 650,600,"yes");               });
...
..
});

function getDivison(data){
   
   var rowData = $("div#grid_editing").pqGrid("getRowData", { rowIndx: selectRow });
   
   rowData['division'] = data.division;
   rowData['projectName'] = data.projectName;
   
   $("div#grid_editing").pqGrid("refreshCell", { rowIndx: selectRow, dataIndx: 'division' });
   $("div#grid_editing").pqGrid("refreshCell", { rowIndx: selectRow, dataIndx: 'projectName' });
}

my question is the change row not in the change list

var changes = $grid.pqGrid("getChanges", { format: "byVal" }),
                   addList = changes.addList,
                   updateList = changes.updateList,
                   deleteList = changes.deleteList;

4
Help for ParamQuery Pro / editing Grid
« on: February 17, 2014, 12:50:05 pm »

<div id="grid_editing" style="position:absolute;top:120px;"></div>

when i delete " top:120px " this code the grid working well
but use "top:120px;" the addrow function from page 2 only one row in grid.

This is my problem?

5
Help for ParamQuery Pro / grid cell image
« on: February 13, 2014, 07:01:38 am »

I have image and data in one cell.
        render: function(ui){
        var rowData = ui.rowData;
         return "<button type='button' class='search_btn'></button>"+rowData['division'];
   },
question1) I should see the image in edit mode
question2) Modify existing data, the image is not visible and cell data is readonly

6
Help for ParamQuery Pro / getChanges( { format: format } )
« on: January 21, 2014, 12:34:02 pm »
If datamodel datatype is XML
Can i use this function ?
i see this function in API only  return JSON object


7
Help for ParamQuery Pro / pqgridbeforetableview event
« on: January 17, 2014, 06:41:52 am »

This code in free version is ok
But not working in pro version

Is there any different in object definition?

var $grid = $("#grid_infinite").on("pqgridbeforetableview", function (evt, ui) {
           var curPos = ui.curPos;
           var finalPos = ui.finalPos;
           var data = ui.data;
           remoteData(curPos, finalPos, data); 
   
       });

Pages: [1]