Author Topic: Key Navigation Slow  (Read 3683 times)

Hari

  • Newbie
  • *
  • Posts: 5
    • View Profile
Key Navigation Slow
« on: July 12, 2017, 08:40:15 am »
Hi,

Thank you for your support.

We have implemented a Grid with Add, Modify, Copy, Delete events and cell color changes dynamically based on events.

After including all mentioned above details, key navigation became slow in IE when i try to navigate through navigation arrow key.

Please let me know if you have any suggestion for this issue.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Key Navigation Slow
« Reply #1 on: July 12, 2017, 06:02:48 pm »
Which events have you used? Do you directly modify the DOM of grid?

Could you share an example demonstrating the key navigation slow issue in IE.

Hari

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Key Navigation Slow
« Reply #2 on: July 19, 2017, 05:06:07 pm »
Hi,
Thanks for your reply and sorry for late responose.

I did try to proivde a demo. But due to large source, im not able to do it.

I found the exact place where the issue is happening.

If I use selection model as null, then i dont find any delay during Key navigation (from Left to right using Key navigation Key)
selectionModel:{type: null}

If I want enable the drag functionality in Cell as below
selectionModel:{type: 'cell', cball: true},

Then, during key navigation, all call back which is configured in cell are triggered for each cell. due to this there is a delay in IE.


Sample Cell level validation

{ title: function(ui){
      return doTranslateHeader("load.N2DNA.SS_HEAD_050");
      }, minWidth: 50, dataType: "string",cls:"optionalHdrBkgrnd",labelIndx: "load.N2DNA.LI_HEAD_199", align: "center", dataIndx: "time",render: function(ui){return colonCellEdit(ui);},editable: function(ui){
   return CrudService.editableCheck(ui);
   },filter: {
   type: 'textbox',
   condition: 'contain',
   listeners: ['keyup']
   },editor: { type:'textbox', attr:'maxlength =4',init:function(ui){ return keyRestrictService.keyRestrict(ui,'^[0-9 ]+$')}}}

Note :
1. The key navigation is done after grid prepared with Data (Server side pagination and 100+ Columns)
2. By Default, the grid is not having editable cells (Made as non editable)
3. Cell will be made editable during external event (By clicking Edit button which is available in Screen)
4. Render call back will have code for data changes based on conditions and color changes at runtime.


Please provide me suggestion on this.

Hari

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Key Navigation Slow
« Reply #3 on: July 27, 2017, 01:12:09 pm »
Hi,
Could you please update your suggestion on this issue.

Would be really helpful for us to proceed.

Thank you

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Key Navigation Slow
« Reply #4 on: July 28, 2017, 12:20:56 am »
Do you have code in selectChange event.

During key navigation, the other mentioned events are not fired.

Please share a jsfiddle which would help narrow down the cause of issue.

Hari

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Key Navigation Slow
« Reply #5 on: August 02, 2017, 10:09:46 am »
Thank you for response.

There is no code available in selectChange and infact not using selectChange event in our code

I will prepare a jsfiddle.