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

Pages: [1] 2 3
1
grid.addClass({rowIndx: 2, dataIndx: 'revenue', cls: 'editable'} );

rowIndx is good.
However, dataIndx is always undefined.
So it does not work.

What should I do?

--------------------------------




you can use this condition based on any arbitrary class.

Code: [Select]
editable: function(ui){
  return this.hasClass({
    rowIndx: ui.rowIndx,
    dataIndx: ui.dataIndx,
    cls: 'editable'
  });
}

and assign/ remove a class to cell at runtime.

Code: [Select]
  grid.addClass({rowIndx: 2, dataIndx: 'revenue', cls: 'editable'} );

2

grid.addClass({rowIndx: 2, dataIndx: 'revenue', cls: 'editable'} );

rowIndx is good.
However, dataIndx is always undefined.
So it does not work.

What should I do?

3
Thank you for your reply.
But your method is only suitable for the first loading.
I am in a situation that I need to change after loading.
So I asked the console what to do.

What should I do?

4
Help for ParamQuery Pro / Re: The sort command has no effect.
« on: November 18, 2017, 04:48:22 pm »
Resolved.
We defined the SM as below and put it in pq_sort.
thank you.




postData: function (ui) {
....
                var $grid = $("#grid_filter")
                var SM = $grid.pqGrid("option", "sortModel");

                return {
                    speed_toobar_filter: "{\"mode\":\"OR\",\"data\":" + JSON.stringify(speed_toobar_filter) + "}",
                    pq_curpage: pqIS.requestPage,
                    pq_rpp: pqIS.rpp,
                    pq_sort: JSON.stringify(SM.sorter),
                    addLogic: addLogicCatch
                };




5
Help for ParamQuery Pro / The sort command has no effect.
« on: November 18, 2017, 11:42:55 am »
Hello.

Disability scene video: https://youtu.be/2JKXy5o5lWk


I am trying to change the sort field.
It works well on your site.
url: https://paramquery.com/pro/demos24/sorting_remote (good change)

console:
    var $grid = $("#grid_sorting_remote");
    var DM = $grid.pqGrid("option", "dataModel");
    DM.sortIndx = ["OrderDate"];
    DM.sortDir = ["up"];
    $grid.pqGrid("option", "dataModel", DM);
    $grid.pqGrid("refreshDataAndView");



However, there is no change in my site at all.
url: http://php.speedmis.com/_mis/ttt.htm

console:
    var $grid = $("#grid_filter");
    var DM = $grid.pqGrid("option", "dataModel");
    DM.sortIndx = ["MenuName"];
    DM.sortDir = ["up"];
    $grid.pqGrid("option", "dataModel", DM);
    $grid.pqGrid("refreshDataAndView");

The source is very simple.

Why does not it change?

6
Thank you for your reply.
But your method is only suitable for the first loading.
I am in a situation that I need to change after loading.
So I asked the console what to do.

What should I do?

7
Hello.

url:   https://paramquery.com/pro/demos/row_styles

How do I change a cell to read-only via the console (Chrume F12key)?

cell : rowIndx: 2, dataIndx: "revenues"

how?

thank you.


8
I added row via addRow ().
I modified the contents in the grid.


function saveChanges () {
...
                 var changes = grid.getChanges ({editable: true});
                 debugger;
...
}

The normal case was as follows.
changes.updateList
  • :

{idx: "930", RealPid: null, MenuName: "zzz", AutoGubun: null, g12: null, ... }
(good!)


However, the line added by addRow () looks like this:
changes.updateList
  • :
[idx: "931", RealPid: null, MenuName: "zzz", AutoGubun: null, g12: null, ... ]
(bad!)

What's the problem? What is the solution?

9
Help for ParamQuery Pro / Re: How to fix cell width in "width: flex" state?
« on: September 28, 2017, 06:48:38 am »
Sorry. Resolved.

Failed to do the following.

.zxzx {
   width:100px!important;
   overflow: hidden!important;
   text-overflow: ellipsis!important;
   white-space: nowrap!important;
}


By the way, it succeeded when we did the following.

.zxzx {
   max-width:100px!important;
}


Thank you.


10
Help for ParamQuery Pro / How to fix cell width in "width: flex" state?
« on: September 28, 2017, 06:36:51 am »
Hello.

I deliberately used "width: flex" as shown below.
I used "width: flex" for a special purpose.

http://php.speedmis.com/_mis/index.php?gubun=788&isMenuIn=Y

However, the width of the AddURL is too long. The current width is over 800px.
I studied with cls:"zxzx", but failed to shorten it.
It seems that cls should not be.

,{ title: "AddURL", dataType: "textbox", dataIndx: "AddURL",width:"100", cls:"zxzx", editable: false }


"width: flex" does not change,
"width: flex" flex, What is the width of AddURL actually 100px?

11
Help for ParamQuery Pro / column is hidden, but filtering is use. how?
« on: September 24, 2017, 11:34:55 am »
hello.

Look at the attached picture.
I want to hide the column and filter it.
What can I do?

url :  https://paramquery.com/pro/demos/filter_initial

12
Help for ParamQuery Pro / use ajax in the grid area
« on: September 15, 2017, 05:23:05 pm »
Hello.

I succeeded in converting the search field to ajax keyword.

succeeded url:

http://php.speedmis.com/_mis/index.php?gubun=787&isMenuIn=Y


As well as the toolbar inputbox, the ajax keyword was successfully implemented in the filter area as well.

ajax is lightweight to load. And it is very convenient.


I also want to use ajax in the grid area.

What should I do?

The hint is different.

Please show me the possibility.

Please let me know how you can decide.

Thank you.

13
Help for ParamQuery Pro / Re: catch the maximum button (= fullscreen) event
« on: September 11, 2017, 04:20:10 pm »
Sorry. Resolved.

      $(".pq-ui-button").click(
         function() {
            //..................
         }
      );

14
Help for ParamQuery Pro / catch the maximum button (= fullscreen) event
« on: September 11, 2017, 04:14:58 pm »
Hello

For special reasons, I need to catch the maximum button (= fullscreen) event.

For example,

Click sorting ==== beforeSort: function (evt) {.....}
 

Reset filters Click ==== type: 'button',
label: 'Reset filters'
listener: function () {
.....
}

maximum button (= fullscreen) event ====?

15
thank you  ;D :) ;)

Pages: [1] 2 3