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

Pages: 1 [2] 3
Help for ParamQuery Pro / Re: nextEdit misplaces input
« on: July 05, 2019, 10:45:04 pm »
i checked for js errors in console, none found. Behaviour was different in Chrome and Firefox. I removed onSave:nextEdit, its ok that way.

Help for ParamQuery Pro / nextEdit misplaces input
« on: May 31, 2019, 11:18:00 pm »
hi Paramvir
 i encounter following problem when i activate next Edit like

after modifying a field the next field gets misplaced in the upper left corner of the grid, without changing values the next field remains at the right place.

Help for ParamQuery Pro / clicksToEdit:2
« on: May 27, 2019, 08:23:22 pm »
hi Paramvir
i want entering in editmode only be doubleclick. I tried to add clicksToEdit:2 in the example.
editModel: {
                saveKey: $.ui.keyCode.ENTER,
                //filterKeys: false,
                keyUpDown: false,
                cellBorderWidth: 0

It did not change the behaviour. Editor still starts by pressing any key.

Help for ParamQuery Pro / Re: date format
« on: May 23, 2019, 10:44:59 pm »
hi omerix
i found a workround.(quick and dirty). Just declare the date-field as string, then it will accept dd/mm/yyyy format.

{title: "Datum", width: 100, dataType: "string", dataIndx: "datum",format:'',formatRaw:'',....

Help for ParamQuery Pro / Re: nextEdit
« on: May 20, 2019, 08:30:34 pm »
did the trick
thank you

Help for ParamQuery Pro / Re: nextEdit
« on: May 17, 2019, 02:51:15 pm »
i think, triggering a dblclick event could be the most elegant way to achieve my goal. (invoke editor just on admitted rows)
but no look.
my snippet:
if(evt.keyCode == 40 || evt.keyCode == 38){ //down key.               
                        evt.keyCode==40 ?ui.rowIndx ++:ui.rowIndx --;
                        evt.keyCode==40 ? ui.rowIndxPage++:ui.rowIndxPage--;
                        ui.$cell.dblclick() //does not work, tried also .trigger('dblclick')

Help for ParamQuery Pro / Re: nextEdit
« on: May 16, 2019, 11:08:37 pm »
thank you, it works fine. But i have another question, i am stuck on it:
not all records are ediatable in the list, just the ones that belong to me. So i added a class editable to the pq_rowcls and 
var colModel= [
   ...   {title: "Vorname",dataType:"string",dataIndx: "vorname",editable:function (ui){return ui.rowData.pq_rowcls && ui.rowData.pq_rowcls.indexOf("editable")!=-1}},
        {title: "Name",dataType:"string",dataIndx: "name",editable:function (ui){return ui.rowData.pq_rowcls && ui.rowData.pq_rowcls.indexOf("editable")!=-1}},

i altered your snipped so:
        editorKeyDown: function(evt, ui){           
                var grid = this;
                if(evt.keyCode == 40 || evt.keyCode == 38){ //down key.
                        evt.keyCode==40 ?ui.rowIndx ++:ui.rowIndx --;
                        evt.keyCode==40 ? ui.rowIndxPage++:ui.rowIndxPage--;
                        if(ui.$cell.parents('.editable'))grid.editCell(ui); <--------------------this does not work, it is not reaching the row 

Help for ParamQuery Pro / nextEdit
« on: May 09, 2019, 03:24:32 pm »
i am looking for a method to perfom nextEdit when the down-key  is pressed. onSave: nextEdit  works just in the same row.
Any hint?
Thank you

Help for ParamQuery Pro / isDirty not true after edit
« on: March 11, 2019, 11:15:57 pm »
1. i took row-editing as example and adapted it to this script:
i dont find out  why the row after editing is not considered as dirty.
(it never reaches the alert)

2. i would like to have each field of cht active record opend in editmode, so i can move the focus just by tab. No need to click on each field in the active row.
Any hint to achieve this behaviour?

Thank you in advance

Help for ParamQuery Pro / html code in data does not get renderd
« on: March 08, 2019, 08:22:41 pm »
my data contains html code and want to have it rendered.
But PQGrid shows the sourcecode.
I modifiied example "row and cell styles", there it renders. (see attached printscreen)

Help for ParamQuery Pro / Re: filter on all fields does not work
« on: February 27, 2019, 05:22:36 pm »
found it:
in the example filterRender function change
the first line to var val = val = ui.cellData?ui.cellData:"",
then it works as expected.

Help for ParamQuery Pro / another question on filter on all fields
« on: February 27, 2019, 02:13:31 pm »
now i implemented search and it works but another question rises up:
I tried to filter on all fields with option "contain".
You may try it on plunker:
Enter just an "a", filter returns all fields containng "a".
Try it with single charctes "d", "f", "g", no filterresult, despite the fact that there are plenty of fields containig these charactes.
If searching for "de", or "fe", result is correct.

Help for ParamQuery Pro / Re: filter on all fields does not work
« on: February 26, 2019, 09:42:34 pm »
it took me quite a while to realize, that filterModel: { mode: "OR" } was missing!
Maybe this should be default??
thank you

Help for ParamQuery Pro / Re: filter on all fields does not work
« on: February 25, 2019, 09:00:29 pm »

Help for ParamQuery Pro / Re: filter on all fields does not work
« on: February 25, 2019, 08:30:10 pm »
i tried to setup my example in plunkr, but it seems externally dataload is not allowed. So i changed it to json local data, but it is not showing up my data (like list is empty).
So i am stuck.
Please have a look into this.

Pages: 1 [2] 3