Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by roxana aioanei on Jul 18, 2008 04:05
open dhtmlx forum
Hello!How can I set horizontal scoll bar for a subgrid? My grid has the width smaller then the subgrids width. I need a scroll bar for subgrids. TIA All the answers helped me a lot! Thanks! We are the best!

Answer posted by Support on Jul 18, 2008 04:21
Horizontal scroll denied in source code of sub_row_grid excell.

dhtmlxgrid_excell_sub.js, line 205
    td._sub_grid.objBox.style.overflow="hidden";
can be changed to
    td._sub_grid.objBox.style.overflowY="hidden";

or you can add next line of code

grid.attachEvent("onSubGridLoaded",function(sub){
    sub.objBox.style.overflowX="auto";
    return true;
})