I figured out how to extract the row data. The open source version of the grid I am using forces you to traverse all the grid cells to collect changes. Even with this restriction grids with up to a thousand rows are still very responsive. I'll post the key routine tonight.
I've read about jQuery but I haven't tried using it. Sent from my iPhone On Dec 4, 2012, at 10:49 AM, Raul Miller <rauldmil...@gmail.com> wrote: > In your blog post, you pose the question of how to get at the data > from the grid. > > A crude but simple mechanism in javascript would be: > > document.getElementById('gridbox').innerText > > But this has limitations (a lack of delimiters and escapes). > > I could walk you through traversing the data structure in javascript, > but I think a good practice here would be to use something like jquery > (which gives you abstractions which are portable across browsers along > with some support for working with useful abstractions). With jquery > installed (and for demo work, I'd just use the instance documented at > https://developers.google.com/speed/libraries/devguide#jquery), you > might use something like: > > data= $('#gridbox tr').map(function(){return > $(this.innerHTML).map(function(){return this.innerText})}) > > Here, data[3][1] would give you the result '2089-03-04 01:53:17.490'. > > jQuery is a bit quirky, but a little trial and error and documentation > searching usually works well. > > FYI, > > -- > Raul > > > On Tue, Dec 4, 2012 at 1:01 AM, John Baker <bakerj...@gmail.com> wrote: >> I've put up a new blog post about my adventures in JHS/JavaScript grid land. >> >> http://bakerjd99.wordpress.com/2012/12/03/jhs-with-the-dhtmlx-grid/ >> >> Bottom line: load times are very competitive with C# windows form grids. My >> fastest test machines load 100 rows in 50 milliseconds. Even my clunky 8 >> year old linux box sucks it in around 200 milliseconds. >> >> This JHS GUI stuff is going to work. >> >> -- >> John D. Baker >> bakerj...@gmail.com >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm