Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by j.lagos on Feb 11, 2009 07:59
open dhtmlx forum
Loading Grid with parse

I want to load a Grid partially, I mean row by row.
I use the following as:
var ar=grid_data.split(',');
         mygrid_bob.parse(ar,'jsarray');

but Grid puts a letter to each cell instaed of a whole string.
Debugging grid_data and var ar, shows correct.

Please, is there anything else I can do?

Thanks,
John
Answer posted by Support on Feb 11, 2009 09:44
Parameter of parse command must be matrix of values, so change your command as  mygrid_bob.parse([ar],'jsarray'); or just use addRow command instead of parse
             mygrid_bob.addRow(mygrid_bob.uid(),ar);
Answer posted by j.lagos on Feb 12, 2009 00:21

When you have to load 100 rows to every of 4 Grids, addRow is very slower than other methods.

This is the reason I 'm trying to parse with jsarray or XML.

Is it possible to use XML instead of jsarray, but partially?

Thanks,

John

Answer posted by dhxSupport on Feb 12, 2009 03:38
You can useupdateFromXML(url, insert_new, del_missed, afterCall) method where insert_new - insert new items, del_missed - delete missed rows, afterCall - function, will be executed after refresh completted
Answer posted by j.lagos on Feb 12, 2009 03:40

Ok, thanks

JL