Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by aioanei roxana on Jul 18, 2008 05:59
open dhtmlx forum
The horizontal and vertical scroll bars have strange behaviour

The horizontal and vertical scroll bars have strange behaviour:
1. Horizontal scroll bar:
If in subgrid I use only horizontal scroll bar, this one is over last record (last subgrid row).It is imposible for the user to see the last record.
2.Vertical scroll bar
If in subgrid I use both horizontal and vertical scroll bars, vertical scroll bar can be seen only if in subgrid are more then 3 records.

It is very important for users to see all the information from subgrid.
TIA

Answer posted by Support on Jul 18, 2008 08:10
The subgrid in normal mode has not any scrollbars at all, the only way how scrollbar can appear in subgrid - as resutl of code modification.

>>If in subgrid I use only horizontal scroll bar, this one is over last record
This is one of reason to disabling any scrolls in subgrid by default. There is no way to stable fix such problem ( it requires too complex calculations )
You can modify
    dhtmlxgrid_excell_sub_row.js , line 204
that._detectHeight(d,td,td._sub_grid.objBox.scrollHeight+td._sub_grid.hdr.offsetHeight);
can be replaced with
that._detectHeight(d,td,td._sub_grid.objBox.scrollHeight+td._sub_grid.hdr.offsetHeight+20);
   

>> if in subgrid are more then 3 records.
This is native feature of browser - if scrollable zone is shorter than place necessary to draw scrollbar UI - scrollbar not rendered at all.