Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by dactar on Feb 15, 2009 15:34
open dhtmlx forum
GRID : updateFromXML problem with new rows

Hellow :)

I'm using updateFromXML with dhxgrid and it partially works :

- Refresh existings rows : OK
- Remove old rows : OK
- Insert new rows : don't work (no row(s) added)

I've passing XML file, true, true to updateFromXML

Do you have any ideas ?

Thanks :)
Answer posted by dhxSupport on Feb 16, 2009 09:32
Please check if at your xml there is no rows with the same id's.
Answer posted by dactar on Feb 16, 2009 09:57
 I've checked the xml and there's no rows with the same id's even it's impossible in my xml file because the id is build from a primary key of a database table.

Thanks for your answer :)
Answer posted by dhxSupport on Feb 16, 2009 09:59
We cant reproduce this issue locally. Please send sample where this issue occurs at the support@dhtmlx.com
Answer posted by dactar on Feb 16, 2009 15:11
Hellow,

I've found when it doesn't works :

It works when the grid has no complex header.

I've a grid who use a complex header like dhtmlxGrid/samples/header_footer/grid_complexheader_content.html
and it doesn't work. Tell me if you still need a sample.

Thanks for your answer :)
Answer posted by dhxSupport on Feb 17, 2009 07:52
Yes, please send us sample where this issue occurs at the support@dhtmlx.com
Answer posted by dactar on Feb 19, 2009 01:59

Finally there's no problem with updateFromXML.

I was not able to see news line because in some situations the vertical scroll bar is no more present
when I reload the whole page. New lines are in the bottom of the grid and without vertical scroll bar, I can't see them. 

I'm using a grid with complex header who is inside a dhtmlx windows who is inside a layout's cell. I'll try to investigate
more and I'll open a new question if I can make a sample.