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

Pages: [1] 2 3
1
Help for ParamQuery Pro / Re: 2 type editor in 1 column
« on: April 23, 2021, 11:03:40 am »
      {
        title: 'ACTUAL',
        dataIndx: 'actual',
        maxWidth: 76,
        minWidth: 76,
        dataType: 'date',
        format: 'yy.mm.dd',
        align: 'center',
        valign: 'center',
        sortable: false,
        styleHead: this.styleForHead(),
        style: this.styleCell(),
        editor: {
          type: function (ui) {
            if (ui.rowIndx == 5) {
                return "select"
            }
            else {
                return "textarea";
            }
          },
          options: ['YES', 'NO'],
        }
      },

Here is my code, it's not working...

2
Help for ParamQuery Pro / Re: 2 type editor in 1 column
« on: April 23, 2021, 06:06:12 am »
If I want selectbox has 2 options (YES and NO). How do I code? Help me, please

3
Help for ParamQuery Pro / 2 type editor in 1 column
« on: April 20, 2021, 12:51:05 pm »
- I have 1 column and 7 rows in that column, i want row 0, 1, 2, 3, 5, 6, 7 to be of type Text and row 4 to be of type Select.
How will I do it?

4
Help for ParamQuery Pro / Re: Load grid
« on: March 24, 2021, 12:19:56 pm »
I wrote a jsfiddle but the grid is normal, it seems like it only just happened in my project

https://stackblitz.com/edit/js-dvnxwq?file=index.js

5
Help for ParamQuery Pro / Load grid
« on: March 23, 2021, 01:21:29 pm »
I have a issue:
- Why when I load the grid page sometimes it shrinks sometimes it stretches. Is there a way to load the grid page without shrinking?

6
Help for ParamQuery Pro / Re: Issue filter
« on: February 24, 2021, 12:48:57 pm »
When I add your command to my command line, my grid page doesn't load at the same time with an error message.

Code:
    {
        title: 'CS1',
        // width: 65,
        dataType: 'date',
        dataIndx: 'cs1',
        format: 'mm.dd',
        align: 'center',
        valign: 'center',
        hvalign: 'center',
        style: this.styleCell(),
        styleHead: this.styleHead(),
        sortable: false,
        filter: { crules: [{ condition: 'between' }] },
        render: function(ui) {
          return $.datepicker.formatDate('mm.dd', new Date(ui.cellData))
        }
      },

7
Help for ParamQuery Pro / Issue filter
« on: February 19, 2021, 11:54:23 am »
- I want to filter from date to date but if the value in the column is mm.dd.yy then it will filter correctly, if the value in the column is mm.dd then the filter will be false and no rows to display.
- The returned API is in the form yyyy-mm-dd(Ex: 2020-01-15) and then reformatted
--> Expectation: The column shows only the mm.dd value, but filters correctly
{
        title: 'CS1',
        dataType: 'date',
        dataIndx: 'cs1',
        format: 'mm.dd', //Format mm.dd then filter will be wrong, Format mm.dd.yy then filter will be true. But I just want to display mm.dd and the filter is still correct
        align: 'center',
        valign: 'center',
        hvalign: 'center',
        style: this.styleCell(),
        styleHead: this.styleHead(),
        sortable: false,
        filter: { crules: [{ condition: 'between' }] },
        render: (ui) => this.renderCell(ui),
      },

8
Help for ParamQuery Pro / Re: Get data in cell
« on: January 07, 2021, 09:22:32 am »
Thanks admin ^_^

9
Help for ParamQuery Pro / Re: Get data in cell
« on: January 06, 2021, 09:26:26 am »
Add expected: If it is empty, clicking on the cell will show the word "N / A", if you click on another cell, the previous cell will lose the word "N / A".

10
Help for ParamQuery Pro / Get data in cell
« on: January 06, 2021, 08:48:30 am »
I want to get and check the data of 1 cell is empty or not?
Expected: Use console show data of cell

11
This is my html code:

<nb-card class="col-md-12 col-lg-12 col-xxxl-12">
    <nb-card-header>
    </nb-card-header>
    <nb-card-body>
        <div id="grid_dday_tracking" class="general"></div>
    </nb-card-body>
</nb-card>

And this is code I set height for grid follow you:

  const optionConf: any = {
      width: 'auto',
      height: '100%-15',
      editModel: {
        clicksToEdit: 1,
      },
      numberCell: {
        show: false,
      },
      trackModel: { on: true }, // to turn on the track changes. using for rollback edit.
      columnTemplate: { editable: false, rowHtHead: 30 },
      rowHt: 30,
      wrap: false,
      hwrap: false,
      collapsible: {
        on: false,
        css: {
          zIndex: 1400,
        },
      },
      type: 'local',
      filterModel: { on: true, mode: 'AND', header: true, type: 'local' },
      dataModel: {
        data: [],
        recIndx: 'so_no',
      },
      resizable: true,
      editor: { select: true },
      colModel: colModel,
      animModel: {
        on: true,
      },

And the result is the picture. What should I do now?

12

I want to dynamically adjust the grid height relative to the browser. How do I do? For example in my picture I want the space always be 15px when I resizing the browser.

13
Help for ParamQuery Pro / How to use search function in select option?
« 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

14
Help for ParamQuery Pro / Re: Scrollbar overlay
« 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

15
Help for ParamQuery Pro / Scrollbar overlay
« 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