Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ez on Oct 22, 2009 06:10
open dhtmlx forum
Arrow UP/DOWN in subGrid

Hi!

Pushing arrow UP/DOWN in subGrid now act this way:

1. UP or DOWN row is selected
2. subGrid is closed


So, there is no way to select row 3 rows bellow current position eg, by pressing 3 times down arrow button - subGrid is closed after first down arrow press.

Is there any way to change this to CORO selecting style?
Answer posted by dhxSupport on Oct 22, 2009 07:46
>>by pressing 3 times down arrow button - subGrid is closed after first down arrow press.
Please provide any kind of sample where we can reproduce this issue.
>>Is there any way to change this to CORO selecting style
CORO selection style is hardcoded. But you can implement any custom eXcell type you need. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:toc_custom_excell_creation
Answer posted by ez on Oct 23, 2009 02:56
Answer posted by Alex (support) on Oct 23, 2009 06:37

Hello, 

the "sgrid" editor closes when row is selected. 

You can modify the dhtmlxgrid_excell_sgrid.js to close editor on enter key press

please locate here

grid.attachEvent("onRowSelect",function(id){
  that.editStop();
  return true;
});

and replace it with

grid.attachEvent("onEnter",function(id){

  that.editStop();
  return true;
});

Answer posted by ez on Oct 24, 2009 03:29
What about row select by mouse double click, will it work?
Answer posted by Stanislav (support) on Oct 26, 2009 10:20
You can add to the same code block 


grid.attachEvent("onRowDblClicked",function(id){
   that.editStop();
   return true;
});