Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Help for ParamQuery Pro / Re: How to remove column dragging from history
« Last post by MichalV on February 17, 2025, 09:56:35 pm »
It works well! Many thanks for your help!
82
Help for ParamQuery Pro / Re: How to remove column dragging from history
« Last post by paramvir on February 17, 2025, 07:12:50 pm »
Please check the corrected example:

https://paramquery.com/pro/demos/editing_batch
83
"yyyy-mm-ddThh:mm" and "yyyy-mm-dd" are parsed differently hence the requirement to add timezone offset manually so as to make them comparable. offset is not to be used when both filter value and column values are in same format. While it may work with/without offset for some timezones, the offered solution is for all timezones.

It's a temporary workaround and might be fixed in upcoming version so that above 2 formats are parsed in same way before passing as arguments to filter compare callback.
84
Help for ParamQuery Pro / Re: How to remove column dragging from history
« Last post by MichalV on February 17, 2025, 03:00:01 pm »
Thanks for your reply. Any workaround how to activate the Save button (in batch edit mode) just if the grid is really dirty?
I've tried history event with isDirty(), but it runs before the grid gets dirty.
85
Help for ParamQuery Pro / Re: How to remove column dragging from history
« Last post by paramvir on February 17, 2025, 12:47:02 pm »
There's no option currently. it's been added to the upcoming version, thanks for your feedback.
86
Help for ParamQuery Pro / How to remove column dragging from history
« Last post by MichalV on February 15, 2025, 10:34:24 pm »
Hi Paramvir,
Is there an option to remove column reordering from history? So the save/undo/redo buttons are not activated upon column reordering?
Thanks.
87
I've tried your fix, and it works, but when the offset is applied to date-only columns, it still works as well. For example, it works with ShippedDate, which is a date-only column, even though the offset ideally should not apply here, based on your explanation. Could you please advise on why this happens?

Additionally, is this considered a permanent fix for the issue, or should we treat it as a temporary workaround? I?d prefer not to commit a temporary solution to production code.
88
Please add offset in the compare function for now to make the dates comparable.

Code: [Select]
            compare: function (cd, val) {
              var offset = new Date(val).getTimezoneOffset() * 60 * 1000

              val += offset

              if (cd - val >= 0 && cd - val < 24 * 3600 * 1000) {
                return true
              }
            },

This compare function assumes that all dates in column are in datetime format while the date entered in filter box is date only. If dates in column are also dates ( without time ), then don't add offset to the val.

https://jsfiddle.net/erpmgxto/3/
89
Help for ParamQuery Select / Re: Single select checkbox
« Last post by paramvir on February 14, 2025, 10:08:58 pm »
radio: true is used in the initialization object while initializing paramquery select control.

It's demonstrated in 1st example on this page: https://paramquery.com/select

API reference: https://paramquery.com/api/select#option-radio
90
Help for ParamQuery Select / Re: Single select checkbox
« Last post by afe77 on February 14, 2025, 07:07:00 pm »
Hi paramvir,
can you be more specific, please?


"use radio instead of checkbox => radio: true"
what? where?

Thanks


Pages: 1 ... 7 8 [9] 10