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

Pages: [1] 2 3 ... 7
1
Wheng using following code to set default value for pqgrid column, there is a "Uncaught TypeError: Cannot redefine property: id"  problem.
The code comes from https://paramquery.com/forum/index.php?topic=4347.0.
            rowTemplate: {},
            complete: function(){
                let rt = this.option('rowTemplate'), cm = this.getColModel();
                cm.forEach(function(col){
                    let def = col.defaultValue, di = col.dataIndx;
                    if( def !== undefined ){
                        Object.defineProperty(rt, di, {
                            enumerable: true,
                            get(){
                                var val = this[ "_" + di];
                                return val == null? def: val;;
                            },
                            set(val){
                                this[ "_" + di ] = val;
                            }
                        });
                    }
                });
            },

2
It's realy a pity to make so much trouble to spot it as a bug.

3
http://cdn.jsrun.top/res/hyh888/index.html   has less 404 error, maybe it's more friendly for debug.

4
All  code are uploaded into http://cdn.jsrun.top/res/hyh888/BDMS.html, would you like to try it?

5
Would you like to let me know which file is alerted for virus? I'm using visual studio 2019 to make the simplest project. I'll try my best to find a living demo website.

6
Dear paramvir,
Have you find  any solution for my question?

7
Now only pqgrid.min.js(ParamQuery Pro v8.6.0) is not uploaded, I'm sure you have this file.

8
I upload jqueryui many times but always failed. PQgrid is too big to be uploaded.

9
here are jquery

10
Even I tried, but I found that the file is too big.  I have to removed some file. You have to put jquery.min.js(jQuery v3.3.1),jquery-ui.min.js(jQuery UI - v1.12.1 - 2016-09-14),pqgrid.min.js(ParamQuery Pro v8.6.0) manually into the BDMS_files directory.

11
For I'm in China, it seems I couldn't visit the jsfiddle website.
After redebuging, I found that "that.$popup.find(".pq-select-search-div").outerHeight(true)" is OK, but "that.$selectAll.outerHeight(true)" is undefined.
   "that.$selectAll" is available.

12
The pqselect css file is included. For all my data is come from server side and I don't know how to show them in the jsfiddle.
If using a fixed integer to replace the htFinal(just like what I do in the last image I uploaded), the select editor can work though it not satisfied for me.
If it's convenient you can look it wiht remote control software.

13
Using pqselect.dev.js to debug it, it seems that div.pa-select-search-div could not be found, that.$selectAll.outerHeight(true) also has no value.

14
it seems that div.pq-select-menu couldn't be rendered, even it is rendered, there is problem for its height.

15
It seems that vertical scrollbar in select editor disappeared.

Pages: [1] 2 3 ... 7