grid iPad scrolling

I am developing an application that will run on a ‘normal’ browser and an iPad. The ‘touch’ suite does not have the complexities that I need (at the moment!) , so am trying to get grids, trees and treegrids to work on the Pad.
This is the solution I have come up with to get some form of scrolling in a grid.
Touching the header of footer of the grid will now scroll the grid by 10 lines

does anyone know of a better way?

in the main declaration section declare the events that you require

	// header row
	grid.hdr.rows[1].onmousedown = function(e) {
		scrollGrid('U',10);
		(e || event).cancelBubble = true;
	}
	//footer row
	grid.ftr.onmousedown = function(e) {
		scrollGrid('D', 10);			
		(e || event).cancelBubble = true;
	}

this is the function that it calls

function scrollGrid(dir, n){
	var state = grid.getStateOfView();
	var topRow=state[0];
	var bottomRow = state[1] + topRow;
	var maxRow =  state[2];		
	var showRow = 0;		
	if (dir=='U'){
		if ( (topRow -n) < 0){
			showRow = 0;
		}else{
			showRow = topRow - n;
		}
	}else{
		if((bottomRow +n) > maxRow){
			showRow=maxRow -1;
		}else{
			showRow=bottomRow + n;				
		}
	}
	grid.showRow(grid.getRowId(showRow));		
}

Current version of dhtmlxGrid doesn’t support mobile browsers. We are working on extending dhtmlxTouch library so in nearby feature it will support most of the dhtmlxGrid 2.6. functionality.

that is fantastic new, will it support the tree and treegrid at some stage?

We are pressing on with the main application - looking very good as we discover more features as we dig deeper. We are making sure that the application works on the iPad (I know that it is not the best implementation) until we have time to rewrite it all using the touch library.
We have ‘played’ with the touch library and are very encouraged by what we see.
Hats off to the developers- a great job.

Hello,

we do not have plans to implement tree or treegrid for Touch library. You may use list or grouplist instead of the tree.

Olga,
When you say…
Current version of dhtmlxGrid doesn’t support mobile browsers. We are working on extending dhtmlxTouch library so in nearby feature it will support most of the dhtmlxGrid 2.6. functionality.

Do you mean the xGrid code will support this in the future, or that we will need to re-implement using dhtmlxTouch to make it work on iPads?

Currently you are limited to group-list if you need to show a hierarchical data
We do not plan to implement fully functional treegrid on touch, but yes, we plan to add more functionality to the touch grid, so it will have all functionality of its desktop oriented counterpart.