Author Topic: Navigation Issues in editable grid  (Read 4313 times)

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Navigation Issues in editable grid
« on: January 20, 2017, 03:41:42 am »
HI, I am having issues with tab navigation in grids.  Teh issue Iam seeing is that on Internet Explorer tabbing between editable cells behaves differently (worse) than in Chrome.  When in an editable cell you press tab, the next cell is opened for edit but immediately closes and you are left wiht the focus on the cell but not in edit mode.  In Chrome this works correctly and you can tab from cell to cell and the editors open correctly.

Example code is at the bottom of this post.  I used your % Column Widths sample and deleted all teh Javascript in there and replaced it with the code below.  Run this on both Chrome and IE.  Click on the top left cell and both will go into edit mode.  THen tab to the next column and you will see the disparity.

A Second issue we are having is that when you tab to the end of the grid (bottom right cell) and then click tab again nothing happens.  We wodul expet that the focus wodul leave the grid and proceed to the next control in the tab order.  This may or may not be another ParamQuery Grid.  Is there a way to trap the navigation and when there is no cell to navigate to change teh focus to the next control in teh tab order?

THANKS!!!


// CODE

       $(function () {
 var _phCE_Shareholders_data = {"pqObj":{"rowBorders":true,"selectionModel":{type: 'cell'},"roundCorners":false,"scrollModel":{"pace":"fast","theme":true,"autoFit":true},"columnTemplate":{"align":"left","editable":false,"maxWidth":700,"resizable":false,"minWidth":30},"height":"flex","virtualY":false,"columnsBorders":true,"resizable":false,"postRenderInterval":100,"virtualX":false,"collapsible":{on: false, toggle: false},
                                  "colModel":[{"dataIndx":"PersonId","title":"Person ID","align":"right","minWidth":40,"width":40,"dataType":"integer","editable":false,"hidden":true,"editor":false}
                                          ,{"dataIndx":"TitleId","title":"TitleId","align":"right","minWidth":40,"width":40,"dataType":"integer","editable":true,"hidden":true,"editor":{"select":true},"ddcValueDefault":6}
                                          ,{"dataIndx":"Title","title":"Title","doExpand":true,"width":150,"dataType":"string","editable":true,"hidden":true,"editor":{"valueIndx":"TitleId","type":"select","labelIndx":"Title","options":[{"TitleId":6,"Title":"Shareholder"}],"cls":"defaultTextBox"},"minWidth":150,"maxWidth":150}
                                          ,{"dataIndx":"Name","title":"Name","doExpand":true,"doFlex":true,"dataType":"string","editable":true,"editor":{"select":true},"ddcValueDefault":" "}
                                          ,{"dataIndx":"Data","title":"Ownership","width":85,"dataType":"float","editable":true,"editor":{"select":true},"format":"##0.00%","align":"right","minWidth":85,"maxWidth":85}]
                                  ,"swipeModel":{ on: false},"title":"Shareholders","numberCell":{show: false},"dataModel":{"location":"local","sorting":"local"},"editModel":{"onTab":"nextEdit","onSave":"nextEdit","clicksToEdit":1},"hoverMode":"","editor":{ type: 'textbox', cls: 'defaultTextBox', select: true },"dragColumns":false,"editable":true,"showTop":true,"sortModel":{"ignoreCase":true,"single":false},"width":740},
                        "data":[{"pqRowId":0,"PersonId":"27","TitleId":"6","Title":"Shareholder","Name":"abc","Data":"70"},{"pqRowId":1,"PersonId":"26","TitleId":"6","Title":"Shareholder","Name":"xyz","Data":"50"}]};

        var obj = _phCE_Shareholders_data.pqObj;
        obj.dataModel.data = _phCE_Shareholders_data.data;
        $("#grid_json").pqGrid(obj);
    });

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Navigation Issues in editable grid
« Reply #1 on: January 23, 2017, 07:04:22 am »
Thanks for pointing out these issues.

First one is an issue in IE, I've added it to the Bug report, would let you know once the fix / patch is available.

Second one ( enable tab to focus on next tab - able element after pqgrid ) is added for feature enhancement.

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Re: Navigation Issues in editable grid
« Reply #2 on: January 31, 2017, 08:58:43 pm »
Is there a timeframe for when this bug fix will be released?   This is a showstopper for us right now becuase many of our users are on IE and the behavior is very confusing since it is not obvious what cell has the focus and therefore they do not know to start typing.


Thank You!

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Re: Navigation Issues in editable grid
« Reply #3 on: February 03, 2017, 10:32:17 pm »
Hi, I hate to be a pest about this but I need to know if we are talking days, weeks or months before this may be fixed.  If not soon then we need to readjust our plans for using this or find a workaround.

Thank you!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Navigation Issues in editable grid
« Reply #4 on: February 03, 2017, 10:42:58 pm »
If the issue is found to be patch-able, then you would receive the patch by Monday. ( 6 Feb ). otherwise next release is around one month ahead.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Navigation Issues in editable grid
« Reply #5 on: February 07, 2017, 12:31:40 am »
Please use the attached patch to fix the focus issue in IE. Include this patch after pqgrid.min.js file.

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Re: Navigation Issues in editable grid
« Reply #6 on: February 07, 2017, 04:26:23 am »
Thank you, it appears to work well.