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 - francisco.cesar

Pages: [1]
1
Help for ParamQuery Pro / Re: Select row using the keyboard
« on: March 29, 2018, 02:25:23 am »
Thank you very much, it worked!

I ended up with the following code:

Code: [Select]
                cellKeyDown: function(evt, ui) {
                    var sr = this.SelectRow();
                    var currentIndx = ui.rowIndx;
                    if (evt.keyCode == $.ui.keyCode.DOWN) {
                        if (currentIndx + 1 >= this.getData().length) {
                            return;
                        }
                        sr.removeAll();
                        sr.add({ rowIndx: ui.rowIndx + 1 });
                    } else if (evt.keyCode == $.ui.keyCode.UP) {
                        if (currentIndx == 0) {
                            return;
                        }
                        sr.removeAll();
                        sr.add({ rowIndx: ui.rowIndx - 1 });
                    }
                },

Regards and congratulations for this great grid!

2
Help for ParamQuery Pro / Select row using the keyboard
« on: March 28, 2018, 09:53:01 pm »
I have a grid using the row selection model, defined as:

Code: [Select]
selectionModel: { type: 'row', mode: 'single' },

When the user clicks a row, the row is selected correctly. But when the user hits the arrow down key from the keyboard, the behaviour expected is: deselect the current selected row and select the next row, but instead the "cell cursor" moves to the next line without any kind of selection.

Is there a way to make the down/up keys select the next/previous row?

Pages: [1]