Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by dreamer on Jun 20, 2007 16:55
open dhtmlx forum
update(or reload) some specific rows

Hi,

Is there a solution to reload only some rows of the dhtmlXgrid( while knowing their id). I want only to update some rows and not all the grid.

Thanks for your time
Answer posted on Jun 22, 2007 16:34
By script command you can update any cell
    grid.cell(i.j).setValue(newValue);

If you need to update data from server side you can use
    grid.updateFromXMl(url);
command, it will fetch xml from specified url ( format of xml is the same as for data loading ) but instead of adding rows from XML it will updated data in existin ones.

so if xml will containd

<rows>
    <row id="15">
       <cell>New value</cell>       <cell>New value</cell>       <cell>New value</cell>
    </rows>
</rows>

grid will update row with ID==15 with new data from XML
Answer posted by radyno (Support) on Dec 11, 2014 10:59

Having solved the problem mentioned above, you may also look through the possible related problems with ajax wysiwyg and ext js forum.