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
16
Help for ParamQuery Pro / fillhandle
« on: August 22, 2019, 08:16:09 pm »
hi
i would like enable fillhandle  just  on certain columns, not globally.
Can you give me an example?

Thank you

17
Help for ParamQuery Pro / Re: i need a hint
« on: July 10, 2019, 10:22:47 pm »
after experimenting several hours this snippet does the trick:
    editorKeyDown:function(e,ui){if(e.currentTarget.value=='' && e.keyCode==13){
                                                    var id=ui.$td[0].id.split('-');
                                                    id[4]=parseInt(id[4])+1;
                                                    $('.pq-editor-focus').val($('#'+id.join('-')).text())}                               
                                                                                    }
tried it with events editorEnd and cellBevoreSave, value got allways cleared.


18
Help for ParamQuery Pro / Re: i need a hint
« on: July 09, 2019, 01:43:23 pm »
i change slightly the goal to achieve.
When the user leaves a empty field with Enter Key, then it should fill in the value from the direct neighbour (down) record.

this snippet performs well, but then it clears the injected value on blur
 editorEnd:function(e,ui){if(ui.\$cell.val()==''){
                                                    var id=ui.\$td[0].id.split('-');
                                                    id[4]=parseInt(id[4])+1;
                                                    ui.$cell.text($('#'+id.join('-')).text());
                                                    this.saveEditCell()}                               
                                                                                    },

how can i save the injected value?

19
Help for ParamQuery Pro / i need a hint
« on: July 05, 2019, 10:54:44 pm »
hi
i want to have a picklist that contains all different entrys in current column. I manged it by this snippet.
autocomplete ... source: function (grid,ui){               
                    var ret = []
                    var data=grid.getData({dataIndx:[ui.dataIndx]})
                    $(data).each(function(i,v){if(v[ui.dataIndx])ret.push(v[ui.dataIndx])})
                    return (ret)}
So far, so good.
Now i am stuck with this:
when i leave the field, i should complete with the first matching value found in the list, without the need to choose by key or mousclick.
Example; i enter  a , the list contains Armada, Bravo, Mountain then it should autocomplete with Armada on leaving the field.
Maybe you can provide me a hint.

20
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.

21
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
editModel:{clicksToEdit:2,pressToEdit:true,onSave:'nextEdit',saveKey:$.ui.keyCode.ENTER,keyUpDown:false},           

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.


22
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 https://paramquery.com/pro/demos/editing_custom example.
..
editModel: {
      clicksToEdit:2,
                saveKey: $.ui.keyCode.ENTER,
                //filterKeys: false,
                keyUpDown: false,
                cellBorderWidth: 0
            },
..

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

23
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:'dd.mm.yy',formatRaw:'dd.mm.yy',....

24
Help for ParamQuery Pro / Re: nextEdit
« on: May 20, 2019, 08:30:34 pm »
if(grid.isEditable({rowIndx:ui.rowIndx,colIndx:ui.colIndx}))grid.editCell(ui)
did the trick
thank you

25
Help for ParamQuery Pro / Re: nextEdit
« on: May 17, 2019, 02:51:15 pm »
hi
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.               
                    setTimeout(function(){
                        //debugger;
                        evt.keyCode==40 ?ui.rowIndx ++:ui.rowIndx --;
                        evt.keyCode==40 ? ui.rowIndxPage++:ui.rowIndxPage--;
                        ui.$cell.dblclick() //does not work, tried also .trigger('dblclick')
                    },10)                   
                }

26
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.
                   
                    setTimeout(function(){
                        //debugger;
                        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 
                    },10)                   
                }
            }

27
Help for ParamQuery Pro / nextEdit
« on: May 09, 2019, 03:24:32 pm »
hi
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

28
Help for ParamQuery Pro / isDirty not true after edit
« on: March 11, 2019, 11:15:57 pm »
hi
1. i took row-editing as example and adapted it to this script:
https://next.plnkr.co/edit/Hysibr1C6QgJCjaD?preview
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

29
Help for ParamQuery Pro / html code in data does not get renderd
« on: March 08, 2019, 08:22:41 pm »
hello
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)
https://next.plnkr.co/edit/Hysibr1C6QgJCjaD?preview

30
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.

Pages: 1 [2] 3