Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on Apr 04, 2008 13:37
open dhtmlx forum
Refresh

Hello support,

I want to refresh the grid on clicking refresh button.
I tried with updateXML method , but this updates the body rows data only,the headers data remaining the same.
I also tried with

mygrid.clearAll()
mygrid.loadXML(url);

Now here I lost the attachHeaders. I want the grid to be refresh completely for any change in data,no of rows,no of columns,
no of attach headers,rowspan,colspan,splitAt.......etc.etc
So what is the solution?
Answer posted by Support on Apr 07, 2008 05:16
There are two way

a) update data only
    grid.updateFromXML(url);

b) updated data and structure
    grid.clearAll(true);
    grid.loadXML(url);

There is no way to update main headers and preserver attached headers in same time.