Ive been unsuccessfully attempting this for a couple of days, but I havn’t managed + searched the internet but have found no solution. Any help would be greatly appreciated!
Simply put, I created a datagrid where each cells itemrender (and editor) is a checkbox. The information for the datagrid is stored in an xml file. Heres a simplified example of an xml file with a similar structure to what I’m trying to do:
<root>
<group>
<person1>
<first>John</first>
<last>Smith</last>
<selected>true</selected>
</person1>
<person2>
<first>David</first>
<last>Kenshington</last>
<selected>true</selected>
</person2>
<person3>
<first>James</first>
<last>Robinson</last>
<selected>false</selected>
</person3>
</group>
<group>
<person1>
<first>Michael</first>
<last>Henderson</last>
<selected>false</selected>
</person1>
<person2>
<first>Someone</first>
<last>Else</last>
<selected>true</selected>
</person2>
<person3>
<first>Another</first>
<last>Person</last>
<selected>true</selected>
</person3>
</group>
</root>
Each group being a row, and person1, person2 and person3 being the three columns. Each cell would be a checkbox which would be selected/deselected according to the xml, and whose label would be the first and last names with a space.
That much I can do, but the problem is that I don’t know how (once the data in the datagrid has been edited) to change the edited information in the datagrid back into the same format so the xml file can be saved. Also how to scroll through all the checkboxes and enable/disable their selection.
There was probably a simpler way of putting that, but I hoped that made sense. So again if anybody can help me please do! (even if the answer is really simple).
Thanks