Recent Posts

Pages: [1] 2 3 ... 10
1
Help for ParamQuery Pro / Re: dataIndx nested json
« Last post by paramvir on December 04, 2020, 09:00:54 pm »
Your jsfiddle has only data

Code: [Select]
    var data = [{
        rank: 1,
        data: {
            company: 'Exxon Mobil'
        },
        revenues: '339938.0',
        profits: '36130.0'
    }, {
        rank: 2,
        data: {
            company: 'Wal-Mart Stores'
        },
        revenues: '315654.0',
        profits: '11231.0'
    }, {
        rank: 3,
        data: {
            company: 'Royal Dutch Shell'
        },
        revenues: '306731.0',
        profits: '25311.0'
    }];

What's the colModel of the grid? If you want to deduce colModel from data itself, then what it should be?
2
Help for ParamQuery Pro / Re: dataIndx nested json
« Last post by bwt on December 04, 2020, 05:49:34 pm »
https://jsfiddle.net/i3laddin/pv0ey9ju/4/ you can understand me from this array in this fiddle
i type comment for what i need
3
Help for ParamQuery Pro / Re: dataIndx nested json
« Last post by bwt on December 04, 2020, 05:43:59 pm »
i have a nested object ,
let's consider this object
var obj = {

data1:"x",
data2:"y",
data3 : {
data1-1:"xx",
data1-2: {
data1-2-1:"xxx"
}
}
}
in this example we have main columns , is data1 , data2 and data3
and data3 have two column, data1-1 and data 1-2 and so on
i need to get the dataIndx for data 1-2-1 , to print the results in the column
4
Help for ParamQuery Pro / Re: dataIndx nested json
« Last post by paramvir on December 04, 2020, 05:35:15 pm »
Sorry your requirement is not clear enough.

Please elaborate with a small example if possible.
5
Help for ParamQuery Pro / dataIndx nested json
« Last post by bwt on December 04, 2020, 05:26:29 pm »
hello :)
i need to know how to get tthe dataIndx for nested json to call inside of nested colModel
thanks a lot
i wish to hear near from you cause it's urgent case
6
Help for ParamQuery Pro / Re: Scrollbar overlay
« Last post by paramvir on December 04, 2020, 04:09:58 pm »
scrolling with overflow: overlay is not supported by pqgrid.
7
Help for ParamQuery Pro / How to use search function in select option?
« Last post by atmaneuler on December 04, 2020, 12:17:53 pm »
I want to add search function in select option, how will I do it?
This is my code:
         {
            type: 'select',
            cls: 'dDayColSelector',
            options: function (ui) {
              const CM = this.getColModel(),
                opts = [];
              for (let i = 0; i < CM.length; i++) {
                const titleLst = {},
                  column = CM;
                titleLst[column.dataIndx] = column.title;
                if (!column.menuInHide) {
                  opts.push(titleLst);
                }
              }
              return opts;
            },
            listeners: [
              {
                change: function (evt) {
                  const CM = this.getColModel(),
                    $toolbar = this.toolbar(),
                    $dDayColSelector = $toolbar.find('.dDayColSelector').val();
                  for (let i = 0; i < CM.length; i++) {
                    const column = CM,
                      dataIndx = column.dataIndx + '';
                    if (CM.menuInDisable) {
                      continue;
                    }
                    if ($$.inArray(dataIndx, $dDayColSelector) === -1) {
                      CM.hidden = true;
                    } else {
                      CM.hidden = false;
                    }
                  }
                  this.refresh();
                },
              },
            ],
            attr: 'multiple=\'multiple\'',
            Fstyle: 'height:60px;',
          },


And this is what I want it to be
8
Help for ParamQuery Pro / Re: Scrollbar overlay
« Last post by atmaneuler on December 04, 2020, 11:12:16 am »
I set width of grid is width: 'auto', and set last column is maxWidth and minWidth: 175px, the remaining columns are for automatic
Now my scrollbar takes up space of the grid so on the title bar there is 1 space, I want the scroll bar to display but not take up the grid space so that the title bar has no gaps (i.e. scroll bar does not take up the space of the mesh, it is on the grid I do use overflow: overlay but it is ineffective
9
Help for ParamQuery Pro / Re: Scrollbar overlay
« Last post by paramvir on December 04, 2020, 10:19:36 am »
Quote
Expected: The scroll bar is at the top of the grid so that the last column can overflow the grid(picture 2)

I'm not sure what you mean by it, but you can get layout in screenshot 2 by setting maxWidth of the last column.

https://paramquery.com/pro/api#option-column-maxWidth
10
Help for ParamQuery Pro / Scrollbar overlay
« Last post by atmaneuler on December 04, 2020, 08:35:16 am »
I have a issue: Scrollbar takes up the area on the right side of my grid
Expected: The scroll bar is at the top of the grid so that the last column can overflow the grid(picture 2)
Pages: [1] 2 3 ... 10