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

Pages: [1] 2 3 ... 22
1
Help for ParamQuery Pro / Re: Remote options
« on: January 25, 2023, 08:01:19 pm »
Great, thanks.

2
Help for ParamQuery Pro / Remote options
« on: January 23, 2023, 12:03:26 am »
Regarding https://paramquery.com/pro/demos/filter_remote_options.

I have multiple grids using jquery tabs and would like to have this function centralized to be used in all columns in all grids.

How could I implement this?

I send in table and column to PHP file which generates the sql to get distinct values which works fine,
but not sure how to centralize it so all tables and columns can use the same function.

3
Help for ParamQuery Pro / Re: Filter question
« on: January 19, 2023, 07:20:21 pm »
did like this:

Code: [Select]
if (rule.value != undefined || rule.value2 != undefined) {
  rule.value = undefined; //clear the values while keep the filter conditions.
  rule.value2 = undefined;
  grid.filter();//refresh filter.
  }

or is there a better way?

4
Help for ParamQuery Pro / Re: Filter question
« on: January 19, 2023, 07:04:47 pm »
By the way I would like to clear/refresh filter only if filter was set to avoid unnecessary call to db...what would be a good way to do this?

5
Help for ParamQuery Pro / Re: Tooltipster
« on: January 19, 2023, 06:21:25 pm »
Seems to work fine, so no class is needed with this method (ele) for tooltipster I guess?

6
Help for ParamQuery Pro / Re: Tooltipster
« on: January 19, 2023, 04:07:41 pm »
Hmm...Im using jQuery tabs for multiple grids where I reuse the toolbar. Nothing happens when the tooltip is triggered on other tabs and no error message is given.
Is there any modifications needed when using jQuery tabs for the other tabs to work?

7
Help for ParamQuery Pro / Re: Tooltipster
« on: January 19, 2023, 03:33:51 pm »
Works fine, thanks.

8
Help for ParamQuery Pro / Re: Tooltipster
« on: January 19, 2023, 02:54:41 pm »
ok, tried this in toolbar item:

Code: [Select]
init: function() {

$('#toolbar_button').tooltipster({               
    content: $('<strong>this is a text</strong>')
  });

}

but this generates even more of the console messages...I guess the callback is not correct?

9
Help for ParamQuery Pro / Re: Tooltipster
« on: January 19, 2023, 12:34:51 pm »
Still having issue with this...

in toolbar:
Code: [Select]
{
  type: 'button',
  label: "label",
  attr: 'id="toolbar_button"'
}

in reftresh event:
Code: [Select]
refresh: function() {
                   
  $('#toolbar_button').tooltipster({               
    content: $('<strong>this is a text</strong>')
  });

}

It works but in console I get output:

Code: [Select]
Tooltipster: one or more tooltips are already attached to the element below. Ignoring.

10
Help for ParamQuery Pro / Re: Filter question
« on: January 18, 2023, 08:22:36 pm »
Thanks, works fine.

11
Help for ParamQuery Pro / Hide current column from header context menu
« on: January 18, 2023, 02:16:31 pm »
Trying to hide current column from header context menu:

Code: [Select]
function headItems(evt, ui){
  return [
    {
          name: 'Hide column',
          action: function (evt, ui) {
     
            var grid = this,
            column = ui.column
           
            this.Columns().hide({ diHidden: [column.name] });
          }
    }
  ]
}

But can't get it to work properly.

12
Help for ParamQuery Pro / Re: Tooltipster
« on: January 16, 2023, 11:22:26 pm »
Solved.

13
Help for ParamQuery Pro / Tooltipster
« on: January 16, 2023, 07:43:28 pm »
Trying to set HTML content for tooltipster to button in toolbar in refresh event, but can't get it to work properly. Using title attribute on element works fine though...

toolbar with title attribute works:
Code: [Select]
type: 'button',
label: "toolbar_element",
attr: 'title="test"',
cls: 'tooltip'

toolbar with id and set content in refresh event (do not work):
Code: [Select]
type: 'button',
label: "toolbar_element",
attr: 'id="toolbar_element"',
cls: 'tooltip'

refresh event
Code: [Select]
$('.tooltip:not(".tooltipstered")#toolbar_element').tooltipster({
content: $('<span><strong>This text is in bold case !</strong></span>')
});

Old thread:
https://paramquery.com/forum/index.php?topic=1979

14
Help for ParamQuery Pro / Filter question
« on: January 16, 2023, 12:46:24 am »
Hi

I would like to clear filter (if exists) on a column when it changes from visible to hidden.
I used this before: https://paramquery.com/forum/index.php?topic=2355

Now using 8.7.0 with updated show / hide functionality how could it be implemented?

15
Help for ParamQuery Pro / Datetime format
« on: October 05, 2022, 07:06:26 pm »
Hi

Having issue with datepicker.
Data is in format yy-mm-ddThh:mm:ss.
Column options:
Code: [Select]
dataType: 'date', format: 'yy-mm-dd hh:mm:ss', formatRaw: 'yy-mm-dd'
When selecting datepicker '2022-10-04' I get 2022-10-04 hh:10:ss...

I would like datepicker to only use date and ignore time...

Pages: [1] 2 3 ... 22